PageSourceSearch

https://assets.accounts.toggl.com/assets/entry.client-B5gPE3kJ.js

js toggl.com collected 2026-09-24 07:20:07 UTC 334,217 bytes, 48 lines download raw bytes

1import{j as pu}from"./jsx-runtime-BJcAWMsb.js";import{D as w,f as S,h as mt,G as ie,i as Se,j as Ee,S as un,k as _i,l as kl,T as Ul,n as N_,m as C_,o as pr,p as Mt,s as H,q as ua,r as Fi,t as _r,u as hr,v as fe,w as vt,x as te,y as M_,z as Xn,A as Ye,B as x_,C as hn,E as is,F as D_,g as W,H as _u,I as J,J as Kr,K as hu,L as k_,M as $l,N as xt,O as os,P as Hi,Q as Bl,R as jl,_ as U_,U as Wr,a as as,V as Fl,W as $_,X as Hl,Y as Gi,Z as hi,$ as B_,d as ss,a0 as j_,a1 as Yr,a2 as gu,a3 as er,a4 as mu,a5 as Dt,a6 as F_,a7 as Gl,a8 as H_,a9 as G_,aa as Vl,ab as gi,ac as Xl,ad as V_,ae as ca,af as X_,c as us,ag as vu,ah as z_,ai as q_,aj as K_,ak as W_,al as Y_,am as cs,an as At,ao as gt,ap as mi,aq as J_,ar as ve,as as Eu,at as Tu,au as zl,av as ql,aw as Q_,ax as Kl,ay as tr,az as gr,aA as Z_,aB as la,aC as nr,b as eh,aD as Wl,aE as Su,aF as th,aG as ls,aH as nh,aI as rh,aJ as de,aK as Ze,aL as Yl,aM as zn,aN as ih,aO as cn,aP as yu,aQ as bu,aR as Ou,aS as Jl,aT as oh,aU as ah,aV as sh,aW as uh,aX as ch}from"./exports-BI7RTcps.js";import{a as kt}from"./breadcrumbs-D86HJzN1.js";import"./debug-build-l0sNRNKZ.js";import{b as Ql,i as Zl,a as lh,c as fh,I as dh}from"./telemetry-url-a_h-YL5B.js";import{v as Vi,r as oe,D as ef,E as ph,G as _h,H as hh,I as gh,J as mh,K as vh,P as Eh,Q as Th,T as Sh,U as yh,V as bh,W as Oh,X as Rh,f as Ah}from"./chunk-62JRHF6Z-CiITS9Lr.js";import{a as wh,r as Ih}from"./index-BtCCAOm3.js";import{g as Ph}from"./chunk-ZA36QIGN-HSx-SJAB.js";import{a as Lh}from"./utils-BANcuQ5F.js";import{g as Jr}from"./environment-DWQ6JMN2.js";import"./context-DeCw0fRi.js";function tf(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Qr={},Ru={};function bt(e,t){Qr[e]=Qr[e]||[],Qr[e].push(t)}function Ot(e,t){if(!Ru[e]){Ru[e]=!0;try{t()}catch(n){w&&S.error(`Error while instrumenting ${e}`,n)}}}function be(e,t){const n=e&&Qr[e];if(n)for(const r of n)try{r(t)}catch(i){w&&S.error(`Error while triggering instrumentation handler.
2Type: ${e}
3Name: ${mt(r)}
4Error:`,i)}}let To=null;function nf(e){const t="error";bt(t,e),Ot(t,Nh)}function Nh(){To=ie.onerror,ie.onerror=function(e,t,n,r,i){return be("error",{column:r,error:i,line:n,msg:e,url:t}),To?To.apply(this,arguments):!1},ie.onerror.__SENTRY_INSTRUMENTED__=!0}let So=null;function rf(e){const t="unhandledrejection";bt(t,e),Ot(t,Ch)}function Ch(){So=ie.onunhandledrejection,ie.onunhandledrejection=function(e){return be("unhandledrejection",e),So?So.apply(this,arguments):!0},ie.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let Au=!1;function Mh(){if(Au)return;function e(){const t=Se(),n=t&&Ee(t);if(n){const r="internal_error";w&&S.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:un,message:r})}}e.tag="sentry_tracingErrorCallback",Au=!0,nf(e),rf(e)}class Et{constructor(t={}){this._traceId=t.traceId||_i(),this._spanId=t.spanId||kl()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Ul}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function gn(e,t=[]){return[e,t]}function xh(e,t){const[n,r]=e;return[n,[...r,t]]}function wu(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function fa(e){const t=C_(ie);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Dh(e){const[t,n]=e;let r=JSON.stringify(t);function i(o){typeof r=="string"?r=typeof o=="string"?r+o:[fa(r),o]:r.push(typeof o=="string"?fa(o):o)}for(const o of n){const[a,s]=o;if(i(`
5${JSON.stringify(a)}
6`),typeof s=="string"||s instanceof Uint8Array)i(s);else{let u;try{u=JSON.stringify(s)}catch{u=JSON.stringify(N_(s))}i(u)}}return typeof r=="string"?r:kh(r)}function kh(e){const t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Uh(e){return[{type:"span"},e]}
6function $h(e){const t=typeof e.data=="string"?fa(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Bh={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function Iu(e){return Bh[e]}function of(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function jh(e,t,n,r){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:pr(r)},...i&&{trace:i}}}function Fh(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Hh(e,t,n,r){const i=of(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:pr(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return gn(o,[a])}function Gh(e,t,n,r){const i=of(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Fh(e,n?.sdk);const a=jh(e,i,r,t);return delete e.sdkProcessingMetadata,gn(a,[[{type:o},e]])}function Vh(e,t){function n(l){return!!l.trace_id&&!!l.public_key}const r=Mt(e[0]),i=t?.getDsn(),o=t?.getOptions().tunnel,a={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&i&&{dsn:pr(i)}},s=t?.getOptions().beforeSendSpan,u=s?l=>{const d=H(l),f=s(d);return f||(ua(),d)}:H,c=[];for(const l of e){const d=u(l);d&&c.push(Uh(d))}return gn(a,c)}function Xh(e){if(!w)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=H(e),{spanId:i}=e.spanContext(),o=Fi(e),a=Ee(e),s=a===e,u=`[Tracing] Starting ${o?"sampled":"unsampled"} ${s?"root ":""}span`,c=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&c.push(`parent ID: ${r}`),!s){const{op:l,description:d}=H(a);c.push(`root ID: ${a.spanContext().spanId}`),l&&c.push(`root op: ${l}`),d&&c.push(`root description: ${d}`)}S.log(`${u}
7  ${c.join(`
8  `)}`)}function zh(e){if(!w)return;const{description:t="< unknown name >",op:n="< unknown op >"}=H(e),{spanId:r}=e.spanContext(),o=Ee(e)===e,a=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;S.log(a)}function qh(e,t,n,r=Se()){const i=r&&Ee(r);i&&(w&&S.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[hr]:t,[_r]:n}))}function Pu(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[_r],o=r[hr];typeof i=="string"&&typeof o=="number"&&(t[n.name]={value:o,unit:i})}),t}const Lu=1e3;class Xi{constructor(t={}){this._traceId=t.traceId||_i(),this._spanId=t.spanId||kl(),this._startTime=t.startTimestamp||fe(),this._links=t.links,this._attributes={},this.setAttributes({[te]:"manual",[vt]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?M_:Ul}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Xn(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Ye,"custom"),this}end(t){this._endTime||(this._endTime=Xn(t),zh(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[vt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:D_(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[te],profile_id:this._attributes[is],exclusive_time:this._attributes[hn],measurements:Pu(this._events),is_segment:this._isStandaloneSpan&&Ee(this)===this||void 0,segment_id:this._isStandaloneSpan?Ee(this).spanContext().spanId:void 0,links:x_(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){w&&S.log("[Tracing] Adding an event to span:",t);const i=Nu(n)?n:r||fe(),o=Nu(n)?{}:n||{},a={name:t,time:Xn(i),attributes:o};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=W();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Ee(this)))return;if(this._isStandaloneSpan){this._sampled?Wh(Vh([this],t)):(w&&S.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(_u(this).scope||J()).captureEvent(r)}_convertSpanToTransaction(){if(!Cu(H(this)))return;this._name||(w&&S.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=_u(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const o=Kr(this).filter(l=>
8l!==this&&!Kh(l)).map(l=>H(l)).filter(Cu),a=this._attributes[Ye];delete this._attributes[hu],o.forEach(l=>{delete l.data[hu]});const s={contexts:{trace:k_(this)},spans:o.length>Lu?o.sort((l,d)=>l.start_timestamp-d.start_timestamp).slice(0,Lu):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Mt(this)},request:r,...a&&{transaction_info:{source:a}}},u=Pu(this._events);return u&&Object.keys(u).length&&(w&&S.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),s.measurements=u),s}}function Nu(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Cu(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Kh(e){return e instanceof Xi&&e.isStandaloneSpan()}function Wh(e){const t=W();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function Yh(e,t,n=()=>{}){let r;try{r=e()}catch(i){throw t(i),n(),i}return Jh(r,t,n)}function Jh(e,t,n){return $l(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}function Qh(e,t,n){if(!xt(e))return[!1];let r,i;typeof e.tracesSampler=="function"?(i=e.tracesSampler({...t,inheritOrSampleWith:s=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):s}),r=!0):t.parentSampled!==void 0?i=t.parentSampled:typeof e.tracesSampleRate<"u"&&(i=e.tracesSampleRate,r=!0);const o=os(i);if(o===void 0)return w&&S.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 w&&S.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,r];const a=n<o;return a||w&&S.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[a,o,r]}const af="__SENTRY_SUPPRESS_TRACING__";function Zh(e,t){const n=ds();if(n.startSpan)return n.startSpan(e,t);const r=uf(e),{forceTransaction:i,parentSpan:o,scope:a}=e,s=a?.clone();return Hi(s,()=>tg(o)(()=>{const c=J(),l=cf(c,o),f=e.onlyIfParent&&!l?new Et:sf({parentSpan:l,spanArguments:r,forceTransaction:i,scope:c});return Gi(c,f),Yh(()=>t(f),()=>{const{status:p}=H(f);f.isRecording()&&(!p||p==="ok")&&f.setStatus({code:un,message:"internal_error"})},()=>{f.end()})}))}function mn(e){const t=ds();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=uf(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?a=>Hi(e.scope,a):i!==void 0?a=>fs(i,a):a=>a())(()=>{const a=J(),s=cf(a,i);return e.onlyIfParent&&!s?new Et:sf({parentSpan:s,spanArguments:n,forceTransaction:r,scope:a})})}function fs(e,t){const n=ds();return n.withActiveSpan?n.withActiveSpan(e,t):Hi(r=>(Gi(r,e||void 0),t(r)))}function sf({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!xt()){const a=new Et;if(n||!e){const s={sampled:"false",sample_rate:"0",transaction:t.name,...Mt(a)};Wr(a,s)}return a}const i=as();let o;if(e&&!n)o=eg(e,r,t),Fl(e,o);else if(e){const a=Mt(e),{traceId:s,spanId:u}=e.spanContext(),c=Fi(e);o=Mu({traceId:s,parentSpanId:u,...t},r,c),Wr(o,a)}else{const{traceId:a,dsc:s,parentSpanId:u,sampled:c}={...i.getPropagationContext(),...r.getPropagationContext()};o=Mu({traceId:a,parentSpanId:u,...t},r,c),s&&Wr(o,s)}return Xh(o),$_(o,r,i),o}function uf(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Xn(e.startTime),delete r.startTime,r}return n}function ds(){const e=Bl();return jl(e)}function Mu(e,t,n){const r=W(),i=r?.getOptions()||{},{name:o=""}=e,a={spanAttributes:{...e.attributes},spanName:o,parentSampled:n};r?.emit("beforeSampling",a,{decision:!1});const s=a.parentSampled??n,u=a.spanAttributes,c=t.getPropagationContext(),[l,d,f]=t.getScopeData().sdkProcessingMetadata[af]?[!1]:Qh(i,{name:o,parentSampled:s,attributes:u,parentSampleRate:os(c.dsc?.sample_rate)},c.sampleRand),p=new Xi({...e,attributes:{[Ye]:"custom",[Hl]:d!==void 0&&f?d:void 0,...u},sampled:l});return!l&&r&&(w&&S.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",p),p}function eg(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),o=t.getScopeData().sdkProcessingMetadata[af]?!1:Fi(e),a=o?new Xi({...n,parentSpanId:r,traceId:i,sampled:o}):new Et({traceId:i});Fl(e,a);const s=W();return s&&(s.emit("spanStart",a),n.endTimestamp&&s.emit("spanEnd",a)),a}function cf(e,t){if(t)return t;if(t===null)return;const n=U_(e);if(!n)return;const r=W();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Ee(n):n}function tg(e){return e!==void 0?t=>fs(e,t):t=>t()}const Zr={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},ng="heartbeatFailed",rg="idleTimeout",ig="finalTimeout",og="externalFinish";function lf(e,t={}){const n=new Map;let r=!1,i,o=og,a=!t.disableAutoFinish;const s=[],{idleTimeout:u=Zr.idleTimeout,finalTimeout:c=Zr.finalTimeout,childSpanTimeout:l=Zr.childSpanTimeout,beforeSpanEnd:d}=t,f=W();if(!f||!xt()){const m=new Et,R={sample_rate:"0",sampled:"false",...Mt(m)};return Wr(m,R),m}const p=J(),_=Se(),h=ag(e);h.end=new Proxy(h.end,{apply(m,R,U){if(d&&d(h),R instanceof Et)return;const[j,...ne]=U,ye=j||fe(),X=Xn(ye),se=Kr(h).filter(Y=>Y!==h);if(!se.length)return O(X),Reflect.apply(m,R,[X,...ne]);const pe=se.map(Y=>H(Y).timestamp).filter(Y=>!!Y),$=pe.length?Math.max(...pe):void 0,z=H(h).start_timestamp,M=Math.min(z?z+c/1e3:1/0,Math.max(z||-1/0,Math.min(X,$||1/0)));return O(M),Reflect.apply(m,R,[M,...ne])}});function g(){i&&(clearTimeout(i),i=void 0)}function E(m){g(),i=setTimeout(()=>{!r&&n.size===0&&a&&(o=rg,h.end(m))},u)}function b(m){i=setTimeout(()=>{!r&&a&&(o=ng,h.end(m))},l)}function v(m){g(),n.set(m,!0);const R=fe();b(R+l/1e3)}function T(m){if(n.has(m)&&n.delete(m),n.size===0){const R=fe();E(R+u/1e3)}}
8function O(m){r=!0,n.clear(),s.forEach(X=>X()),Gi(p,_);const R=H(h),{start_timestamp:U}=R;if(!U)return;R.data[hi]||h.setAttribute(hi,o),S.log(`[Tracing] Idle span "${R.op}" finished`);const ne=Kr(h).filter(X=>X!==h);let ye=0;ne.forEach(X=>{X.isRecording()&&(X.setStatus({code:un,message:"cancelled"}),X.end(m),w&&S.log("[Tracing] Cancelling span since span ended early",JSON.stringify(X,void 0,2)));const se=H(X),{timestamp:pe=0,start_timestamp:$=0}=se,z=$<=m,M=(c+u)/1e3,Y=pe-$<=M;if(w){const Z=JSON.stringify(X,void 0,2);z?Y||S.log("[Tracing] Discarding span since it finished after idle span final timeout",Z):S.log("[Tracing] Discarding span since it happened after idle span was finished",Z)}(!Y||!z)&&(B_(h,X),ye++)}),ye>0&&h.setAttribute("sentry.idle_span_discarded_spans",ye)}return s.push(f.on("spanStart",m=>{if(r||m===h||H(m).timestamp||m instanceof Xi&&m.isStandaloneSpan())return;Kr(h).includes(m)&&v(m.spanContext().spanId)})),s.push(f.on("spanEnd",m=>{r||T(m.spanContext().spanId)})),s.push(f.on("idleSpanEnableAutoFinish",m=>{m===h&&(a=!0,E(),n.size&&b())})),t.disableAutoFinish||E(),setTimeout(()=>{r||(h.setStatus({code:un,message:"deadline_exceeded"}),o=ig,h.end())},c),h}function ag(e){const t=mn(e);return Gi(J(),t),w&&S.log("[Tracing] Started span is an idle span"),t}const sg="7";function ug(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function cg(e){return`${ug(e)}${e.projectId}/envelope/`}function lg(e,t){const n={sentry_version:sg};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function fg(e,t,n){return t||`${cg(e)}?${lg(e,n)}`}const xu=[];function dg(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];
8i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function pg(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;return dg(r)}function _g(e,t){const n={};return t.forEach(r=>{r&&ff(e,r,n)}),n}function Du(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function ff(e,t,n){if(n[t.name]){w&&S.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,xu.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),xu.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,o)=>r(i,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((o,a)=>r(o,a,e),{id:t.name});e.addEventProcessor(i)}w&&S.log(`Integration installed: ${t.name}`)}function hg(e,t,n){const r=[{type:"client_report"},{timestamp:ss(),discarded_events:e}];return gn(t?{dsn:t}:{},[r])}function df(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function gg(e){const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:o,data:a,op:s}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:a?.[is],exclusive_time:a?.[hn],measurements:e.measurements,is_segment:!0}}function mg(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[is]:e.profile_id},...e.exclusive_time&&{[hn]:e.exclusive_time}}}},measurements:e.measurements}}const ku="Not capturing exception because it's already been captured.",Uu="Discarded session because of missing or non-string release",pf=Symbol.for("SentryInternalError"),_f=Symbol.for("SentryDoNotSendEventError");function ei(e){return{message:e,[pf]:!0}}function yo(e){return{message:e,[_f]:!0}}function $u(e){return!!e&&typeof e=="object"&&pf in e}function Bu(e){return!!e&&typeof e=="object"&&_f in e}class vg{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=j_(t.dsn):w&&S.warn("No DSN provided, client will not send events."),this._dsn){const n=fg(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const i=Yr();if(gu(t))return w&&S.log(ku),i;const o={event_id:i,...n};return this._process(this.eventFromException(t,o).then(a=>this._captureEvent(a,o,r))),o.event_id}captureMessage(t,n,r,i){const o={event_id:Yr(),...r},a=Xl(t)?t:String(t),s=er(t)?this.eventFromMessage(a,n,o):this.eventFromException(t,o);return this._process(s.then(u=>this._captureEvent(u,o,i))),o.event_id}captureEvent(t,n,r){const i=Yr();if(n?.originalException&&gu(n.originalException))return w&&S.log(ku),i;const o={event_id:i,...n},a=t.sdkProcessingMetadata||{},s=a.capturedSpanScope,u=a.capturedSpanIsolationScope;return this._process(this._captureEvent(t,o,s||r,u)),o.event_id}captureSession(t){this.sendSession(t),mu(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;
8return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):Dt(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];ff(this,t,this._integrations),n||Du(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Gh(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=xh(r,$h(o));const i=this.sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const{release:n,environment:r=F_}=this._options;if("aggregates"in t){const o=t.attrs||{};if(!o.release&&!n){w&&S.warn(Uu);return}o.release=o.release||n,o.environment=o.environment||r,t.attrs=o}else{if(!t.release&&!n){w&&S.warn(Uu);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const i=Hh(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const i=`${t}:${n}`;w&&S.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(w&&S.error("Error while sending envelope:",n),n)):(w&&S.error("Transport disabled"),Dt({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=_g(this,t),Du(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",i=!1;const o=n.exception?.values;if(o){i=!0;for(const u of o)if(u.mechanism?.handled===!1){r=!0;break}}const a=t.status==="ok";(a&&t.errors===0||a&&r)&&(mu(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Gl(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,t&&r>=t&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i){const o=this.getOptions(),a=Object.keys(this._integrations);return!n.integrations&&a?.length&&(n.integrations=a),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),H_(o,t,n,r,this,i).then(s=>{if(s===null)return s;this.emit("postprocessEvent",s,n),s.contexts={trace:G_(r),...s.contexts};const u=Vl(this,r);return s.sdkProcessingMetadata={dynamicSamplingContext:u,...s.sdkProcessingMetadata},s})}_captureEvent(t,n={},r=J(),i=as()){return w&&da(t)&&S.log(`Captured error event \`${df(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,i).then(o=>o.event_id,o=>{w&&(Bu(o)?S.log(o.message):$u(o)?S.warn(o.message):S.warn(o))})}_processEvent(t,n,r,i){const o=this.getOptions(),{sampleRate:a}=o,s=hf(t),u=da(t),c=t.type||"error",l=`before send for type \`${c}\``,d=typeof a>"u"?void 0:os(a);if(u&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error"),gi(yo(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));const f=c==="replay_event"?"replay":c;return this._prepareEvent(t,n,r,i).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",f),yo("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return p;const h=Tg(this,o,p,n);return Eg(h,l)}).then(p=>{if(p===null){if(this.recordDroppedEvent("before_send",f),s){const E=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",E)}throw yo(`${l} returned \`null\`, will not send event.`)}const _=r.getSession()||i.getSession();if(u&&_&&this._updateSessionFromEvent(_,p),s){const g=p.sdkProcessingMetadata?.spanCountBeforeProcessing||0,E=p.spans?p.spans.length:0,b=g-E;b>0&&this.recordDroppedEvent("before_send","span",b)}
8const h=p.transaction_info;if(s&&h&&p.transaction!==t.transaction){const g="custom";p.transaction_info={...h,source:g}}return this.sendEvent(p,n),p}).then(null,p=>{throw Bu(p)||$u(p)?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),ei(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
9Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[i,o]=n.split(":");return{reason:i,category:o,quantity:r}})}_flushOutcomes(){w&&S.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){w&&S.log("No outcomes to send");return}if(!this._dsn){w&&S.log("No dsn provided, will not send outcomes");return}w&&S.log("Sending outcomes:",t);const n=hg(t,this._options.tunnel&&pr(this._dsn));this.sendEnvelope(n)}}function Eg(e,t){const n=`${t} must return \`null\` or a valid event.`;if($l(e))return e.then(r=>{if(!ca(r)&&r!==null)throw ei(n);return r},r=>{throw ei(`${t} rejected with ${r}`)});if(!ca(e)&&e!==null)throw ei(n);return e}function Tg(e,t,n,r){const{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:a}=t;let s=n;if(da(s)&&i)return i(s,r);if(hf(s)){if(a){const u=a(gg(s));if(u?s=V_(n,mg(u)):ua(),s.spans){const c=[];for(const l of s.spans){const d=a(l);d?c.push(d):(ua(),c.push(l))}s.spans=c}}if(o){if(s.spans){const u=s.spans.length;s.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return o(s,r)}}return s}function da(e){return e.type===void 0}function hf(e){return e.type==="transaction"}function Sg(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function yg(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=pr(r)),gn(i,[Sg(e)])}function bo(e,t){const n=bg(e)??[];if(n.length===0)return;const r=e.getOptions(),i=yg(n,r._metadata,r.tunnel,e.getDsn());gf().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function bg(e){return gf().get(e)}function gf(){return X_("clientToLogBufferMap",()=>new WeakMap)}function Og(e,t){t.debug===!0&&(w?S.enable():us(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),J().update(t.initialScope);const r=new e(t);return Rg(r),r.init(),r}function Rg(e){J().setClient(e)}const mf=Symbol.for("SentryBufferFullError");function Ag(e){const t=[];function n(){return e===void 0||t.length<e}function r(a){return t.splice(t.indexOf(a),1)[0]||Promise.resolve(void 0)}function i(a){if(!n())return gi(mf);const s=a();return t.indexOf(s)===-1&&t.push(s),s.then(()=>r(s)).then(null,()=>r(s).then(null,()=>{})),s}function o(a){return new Gl((s,u)=>{let c=t.length;if(!c)return s(!0);const l=setTimeout(()=>{a&&a>0&&s(!1)},a);t.forEach(d=>{Dt(d).then(()=>{--c||(clearTimeout(l),s(!0))},u)})})}return{$:t,add:i,drain:o}}const wg=60*1e3;function Ig(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?wg:r-t}function Pg(e,t){return e[t]||e.all||0}function Lg(e,t,n=Date.now()){return Pg(e,t)>n}function Ng(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n?.["x-sentry-rate-limits"],a=n?.["retry-after"];if(o)for(const s of o.trim().split(",")){const[u,c,,,l]=s.split(":",5),d=parseInt(u,10),f=(isNaN(d)?60:d)*1e3;if(!c)i.all=r+f;else for(const p of c.split(";"))p==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(i[p]=r+f):i[p]=r+f}else a?i.all=r+Ig(a,r):t===429&&(i.all=r+60*1e3);return i}const Cg=64;function Mg(e,t,n=Ag(e.bufferSize||Cg)){let r={};const i=a=>n.drain(a);function o(a){const s=[];if(wu(a,(d,f)=>{const p=Iu(f);Lg(r,p)?e.recordDroppedEvent("ratelimit_backoff",p):s.push(d)}),s.length===0)return Dt({});const u=gn(a[0],s),c=d=>{wu(u,(f,p)=>{e.recordDroppedEvent(d,Iu(p))})},l=()=>t({body:Dh(u)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&w&&S.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Ng(r,d),d),d=>{throw c("network_error"),w&&S.error("Encountered error running transport request:",d),d});return n.add(l).then(d=>d,d=>{if(d===mf)return w&&S.error("Skipped sending event because buffer is full."),c("queue_overflow"),Dt({});throw d})}return{send:o,flush:i}}function xg(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function Dg(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function vf(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:vu})),version:vu}),e._metadata=i}function Ef(e={}){const t=e.client||W();if(!z_()||!t)return{};const n=Bl(),r=jl(n);if(r.getTraceData)return r.getTraceData(e);const i=e.scope||J(),o=e.span||Se(),a=o?q_(o):kg(i),s=o?Mt(o):Vl(t,i),u=K_(s);return W_.test(a)?{"sentry-trace":a,baggage:u}:(S.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function kg(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Y_(t,r,n)}let ju;const Ug="FunctionToString",Fu=new WeakMap,$g=(()=>({name:Ug,setupOnce(){ju=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=cs(this),n=Fu.has(W())&&t!==void 0?t:this;return ju.apply(n,e)}}catch{}},setup(e){Fu.set(e,!0)}})),Bg=$g,jg=[/^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. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Fg="EventFilters",Hg=(e={})=>{let t;return{name:Fg,setup(n){const r=n.getOptions();t=Hu(e,r)},processEvent(n,r,i){if(!t){const o=i.getOptions();t=Hu(e,o)}return Vg(n,t)?null:n}}},Gg=((e={})=>({...Hg(e),name:"InboundFilters"}));function Hu(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:jg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Vg(e,t){if(e.type){if(e.type==="transaction"&&zg(e,t.ignoreTransactions))return w&&S.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
10Event: ${At(e)}`),!0}else{if(Xg(e,t.ignoreErrors))return w&&S.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
11Event: ${At(e)}`),!0;if(Yg(e))return w&&S.warn(`Event dropped due to not having an error message, error type or stacktrace.
12Event: ${At(e)}`),!0;if(qg(e,t.denyUrls))return w&&S.warn(`Event dropped due to being matched by \`denyUrls\` option.
13Event: ${At(e)}.
14Url: ${vi(e)}`),!0;if(!Kg(e,t.allowUrls))return w&&S.warn(`Event dropped due to not being matched by \`allowUrls\` option.
15Event: ${At(e)}.
16Url: ${vi(e)}`),!0}return!1}function Xg(e,t){return t?.length?df(e).some(n=>gt(n,t)):!1}function zg(e,t){if(!t?.length)return!1;const n=e.transaction;return n?gt(n,t):!1}function qg(e,t){if(!t?.length)return!1;const n=vi(e);return n?gt(n,t):!1}function Kg(e,t){if(!t?.length)return!0;const n=vi(e);return n?gt(n,t):!0}function Wg(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function vi(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?Wg(n):null}catch{return w&&S.error(`Cannot extract url for event ${At(e)}`),null}}function Yg(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function Jg(e,t,n,r,i,o){if(!i.exception?.values||!o||!mi(o.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=pa(e,t,r,o.originalException,n,i.exception.values,a,0))}
16function pa(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let u=[...o];if(mi(r[i],Error)){Gu(a,s);const c=e(t,r[i]),l=u.length;Vu(c,i,l,s),u=pa(e,t,n,r[i],i,[c,...u],c,l)}return Array.isArray(r.errors)&&r.errors.forEach((c,l)=>{if(mi(c,Error)){Gu(a,s);const d=e(t,c),f=u.length;Vu(d,`errors[${l}]`,f,s),u=pa(e,t,n,c,i,[d,...u],d,f)}}),u}function Gu(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Vu(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Qg(e){const t="console";bt(t,e),Ot(t,Zg)}function Zg(){"console"in ie&&J_.forEach(function(e){e in ie.console&&ve(ie.console,e,function(t){return Eu[e]=t,function(...n){be("console",{args:n,level:e}),Eu[e]?.apply(ie.console,n)}})})}function em(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const tm="Dedupe",nm=(()=>{let e;return{name:tm,processEvent(t){if(t.type)return t;try{if(im(t,e))return w&&S.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),rm=nm;function im(e,t){return t?!!(om(e,t)||am(e,t)):!1}function om(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Sf(e,t)||!Tf(e,t))}function am(e,t){const n=Xu(t),r=Xu(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Sf(e,t)||!Tf(e,t))}function Tf(e,t){let n=Tu(e),r=Tu(t);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++){const o=r[i],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function Sf(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Xu(e){return e.exception?.values?.[0]}const sm="thismessage:/";function yf(e){return"isRelative"in e}function bf(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?sm:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const i=new URL(e,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function um(e){if(yf(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Nt(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function cm(e){return e.split(/[?#]/,1)[0]}function lm(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;const{method:o,url:a}=e.fetchData,s=xt()&&t(a);if(e.endTimestamp&&s){const d=e.fetchData.__span;if(!d)return;const f=r[d];f&&(dm(f,e),delete r[d]);return}const u=!!Se(),c=s&&u?mn(_m(a,o,i)):new Et;if(e.fetchData.__span=c.spanContext().spanId,r[c.spanContext().spanId]=c,n(e.fetchData.url)){const d=e.args[0],f=e.args[1]||{},p=fm(d,f,xt()&&u?c:void 0);p&&(e.args[1]=f,f.headers=p)}const l=W();if(l){const d={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};l.emit("beforeOutgoingRequestSpan",c,d)}return c}function fm(e,t,n){const r=Ef({span:n}),i=r["sentry-trace"],o=r.baggage;if(!i)return;const a=t.headers||(ql(e)?e.headers:void 0);if(a)if(pm(a)){const s=new Headers(a);if(s.get("sentry-trace")||s.set("sentry-trace",i),o){const u=s.get("baggage");u?Cr(u)||s.set("baggage",`${u},${o}`):s.set("baggage",o)}return s}else if(Array.isArray(a)){const s=[...a];a.find(c=>c[0]==="sentry-trace")||s.push(["sentry-trace",i]);const u=a.find(c=>c[0]==="baggage"&&Cr(c[1]));return o&&!u&&s.push(["baggage",o]),s}else{const s="sentry-trace"in a?a["sentry-trace"]:void 0,u="baggage"in a?a.baggage:void 0,c=u?Array.isArray(u)?[...u]:[u]:[],l=u&&(Array.isArray(u)?u.find(d=>Cr(d)):Cr(u));return o&&!l&&c.push(o),{...a,"sentry-trace":s??i,baggage:c.length>0?c.join(","):void 0}}else return{...r}}function dm(e,t){if(t.response){zl(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:un,message:"internal_error"});e.end()}function Cr(e){return e.split(",").some(t=>t.trim().startsWith(Q_))}function pm(e){return typeof Headers<"u"&&mi(e,Headers)}function _m(e,t,n){const r=bf(e);return{name:r?`${t} ${um(r)}`:t,attributes:hm(e,r,t,n)}}function hm(e,t,n,r){const i={url:e,type:"fetch","http.method":n,[te]:r,[vt]:"http.client"};return t&&(yf(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}function Of(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const rr=ie;function gm(){return"history"in rr&&!!rr.history}function mm(){if(!("fetch"in rr))return!1;
16try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function _a(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function vm(){if(typeof EdgeRuntime=="string")return!0;if(!mm())return!1;if(_a(rr.fetch))return!0;let e=!1;const t=rr.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=_a(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){w&&S.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Rf(e,t){const n="fetch";bt(n,e),Ot(n,()=>Af(void 0,t))}function Em(e){const t="fetch-body-resolved";bt(t,e),Ot(t,()=>Af(Sm))}function Af(e,t=!1){t&&!vm()||ve(ie,"fetch",function(n){return function(...r){const i=new Error,{method:o,url:a}=ym(r),s={args:r,fetchData:{method:o,url:a},startTimestamp:fe()*1e3,virtualError:i,headers:bm(r)};return e||be("fetch",{...s}),n.apply(ie,r).then(async u=>(e?e(u):be("fetch",{...s,endTimestamp:fe()*1e3,response:u}),u),u=>{if(be("fetch",{...s,endTimestamp:fe()*1e3,error:u}),Kl(u)&&u.stack===void 0&&(u.stack=i.stack,tr(u,"framesToPop",1)),u instanceof TypeError&&(u.message==="Failed to fetch"||u.message==="Load failed"||u.message==="NetworkError when attempting to fetch resource."))try{const c=new URL(s.fetchData.url);u.message=`${u.message} (${c.host})`}catch{}throw u})}})}async function Tm(e,t){if(e?.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let a;try{a=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:s}=await r.read();clearTimeout(a),s&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(a)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function Sm(e){let t;try{t=e.clone()}catch{return}Tm(t,()=>{be("fetch-body-resolved",{endTimestamp:fe()*1e3,response:e})})}function ha(e,t){return!!e&&typeof e=="object"&&!!e[t]}function zu(e){return typeof e=="string"?e:e?ha(e,"url")?e.url:e.toString?e.toString():"":""}function ym(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:zu(n),method:ha(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:zu(t),method:ha(t,"method")?String(t.method).toUpperCase():"GET"}}function bm(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(ql(t))return new Headers(t.headers)}catch{}}function Om(){return"npm"}const C=ie;let ga=0;function wf(){return ga>0}function Rm(){ga++,setTimeout(()=>{ga--})}function ln(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(cs(e))return e}catch{return e}const r=function(...i){try{const o=i.map(a=>ln(a,t));return e.apply(this,o)}catch(o){throw Rm(),Hi(a=>{a.addEventProcessor(s=>(t.mechanism&&(la(s,void 0),nr(s,t.mechanism)),s.extra={...s.extra,arguments:i},s)),eh(o)}),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Z_(r,e),tr(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function ps(){const e=gr(),{referrer:t}=C.document||{},{userAgent:n}=C.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function _s(e,t){const n=hs(e,t),r={type:Lm(t),value:Nm(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Am(e,t,n,r){const o=W()?.getOptions().normalizeDepth,a=km(t),s={__serialized__:nh(t,o)};if(a)return{exception:{values:[_s(e,a)]},extra:s};const u={exception:{values:[{type:ls(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:xm(t,{isUnhandledRejection:r})}]},extra:s};if(n){const c=hs(e,n);c.length&&(u.exception.values[0].stacktrace={frames:c})}return u}function Oo(e,t){return{exception:{values:[_s(e,t)]}}}function hs(e,t){const n=t.stacktrace||t.stack||"",r=Im(t),i=Pm(t);try{return e(n,r,i)}catch{}return[]}const wm=/Minified React error #\d+;/i;function Im(e){return e&&wm.test(e.message)?1:0}function Pm(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function If(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Lm(e){const t=e?.name;return!t&&If(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Nm(e){const t=e?.message;return If(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Cm(e,t,n,r){const i=n?.syntheticException||void 0,o=gs(e,t,i,r);return nr(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),Dt(o)}function Mm(e,t,n="info",r,i){const o=r?.syntheticException||void 0,a=ma(e,t,o,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Dt(a)}function gs(e,t,n,r,i){let o;if(Wl(t)&&t.error)return Oo(e,t.error);if(Su(t)||th(t)){const a=t;if("stack"in t)o=Oo(e,t);else{const s=a.name||(Su(a)?"DOMError":"DOMException"),u=a.message?`${s}: ${a.message}`:s;o=ma(e,u,n,r),la(o,u)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return Kl(t)?Oo(e,t):ca(t)||ls(t)?(o=Am(e,t,n,i),nr(o,{synthetic:!0}),o):(o=ma(e,t,n,r),la(o,`${t}`),nr(o,{synthetic:!0}),o)}function ma(e,t,n,r){const i={};if(r&&n){const o=hs(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]}),nr(i,{synthetic:!0})}
16if(Xl(t)){const{__sentry_template_string__:o,__sentry_template_values__:a}=t;return i.logentry={message:o,params:a},i}return i.message=t,i}function xm(e,{isUnhandledRejection:t}){const n=rh(e),r=t?"promise rejection":"exception";return Wl(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ls(e)?`Event \`${Dm(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Dm(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function km(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const Um=5e3;class $m extends vg{constructor(t){const n=Bm(t),r=C.SENTRY_SDK_SOURCE||Om();vf(n,"browser",["browser"],r),super(n);const{sendDefaultPii:i,sendClientReports:o,enableLogs:a,_experiments:s}=this._options,u=a??s?.enableLogs;C.document&&(o||u)&&C.document.addEventListener("visibilitychange",()=>{C.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),u&&bo(this))}),u&&(this.on("flush",()=>{bo(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{bo(this)},Um)})),i&&(this.on("postprocessEvent",xg),this.on("beforeSendSession",Dg))}eventFromException(t,n){return Cm(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Mm(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,i)}}function Bm(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:C.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const zi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,P=ie,jm=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",vn=(e,t,n,r)=>{let i,o;return a=>{t.value>=0&&(a||r)&&(o=t.value-(i??0),(o||i===void 0)&&(i=t.value,t.delta=o,t.rating=jm(t.value,n),e(t)))}},Fm=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,mr=(e=!0)=>{const t=P.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},En=()=>mr()?.activationStart??0,Tn=(e,t=-1)=>{const n=mr();let r="navigate";return n&&(P.document?.prerendering||En()>0?r="prerender":P.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:Fm(),navigationType:r}},Ro=new WeakMap;function ms(e,t){return Ro.get(e)||Ro.set(e,new t),Ro.get(e)}class Ei{constructor(){Ei.prototype.__init.call(this),Ei.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const $t=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},qi=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let qn=-1;const Hm=()=>P.document?.visibilityState==="hidden"&&!P.document?.prerendering?0:1/0,Ti=e=>{P.document.visibilityState==="hidden"&&qn>-1&&(qn=e.type==="visibilitychange"?e.timeStamp:0,Vm())},Gm=()=>{addEventListener("visibilitychange",Ti,!0),addEventListener("prerenderingchange",Ti,!0)},Vm=()=>{removeEventListener("visibilitychange",Ti,!0),removeEventListener("prerenderingchange",Ti,!0)},Ki=()=>{if(P.document&&qn<0){const e=En();qn=(P.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??Hm(),Gm()}return{get firstHiddenTime(){return qn}}},vr=e=>{P.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Xm=[1800,3e3],zm=(e,t={})=>{vr(()=>{const n=Ki(),r=Tn("FCP");let i;const a=$t("paint",s=>{for(const u of s)u.name==="first-contentful-paint"&&(a.disconnect(),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-En(),0),r.entries.push(u),i(!0)))});a&&(i=vn(e,r,Xm,t.reportAllChanges))})},qm=[.1,.25],Km=(e,t={})=>{zm(qi(()=>{const n=Tn("CLS",0);let r;const i=ms(t,Ei),o=s=>{for(const u of s)i._processEntry(u);i._sessionValue>
16n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},a=$t("layout-shift",o);a&&(r=vn(e,n,qm,t.reportAllChanges),P.document?.addEventListener("visibilitychange",()=>{P.document?.visibilityState==="hidden"&&(o(a.takeRecords()),r(!0))}),P?.setTimeout?.(r))}))},Wi=e=>{const t=n=>{(n.type==="pagehide"||P.document?.visibilityState==="hidden")&&e(n)};P.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Wm=[100,300],Ym=(e,t={})=>{vr(()=>{const n=Ki(),r=Tn("FID");let i;const o=u=>{u.startTime<n.firstHiddenTime&&(r.value=u.processingStart-u.startTime,r.entries.push(u),i(!0))},a=u=>{u.forEach(o)},s=$t("first-input",a);i=vn(e,r,Wm,t.reportAllChanges),s&&Wi(qi(()=>{a(s.takeRecords()),s.disconnect()}))})};let Pf=0,Ao=1/0,Mr=0;const Jm=e=>{e.forEach(t=>{t.interactionId&&(Ao=Math.min(Ao,t.interactionId),Mr=Math.max(Mr,t.interactionId),Pf=Mr?(Mr-Ao)/7+1:0)})};let va;const Lf=()=>va?Pf:performance.interactionCount||0,Qm=()=>{"interactionCount"in performance||va||(va=$t("event",Jm,{type:"event",buffered:!0,durationThreshold:0}))},wo=10;let Nf=0;const Zm=()=>Lf()-Nf;class Si{constructor(){Si.prototype.__init.call(this),Si.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Nf=Lf(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(Zm()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<wo||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((i,o)=>o._latency-i._latency),this._longestInteractionList.length>wo){const i=this._longestInteractionList.splice(wo);for(const o of i)this._longestInteractionMap.delete(o.id)}this._onAfterProcessingINPCandidate?.(r)}}}const Cf=e=>{const t=P.requestIdleCallback||P.setTimeout;P.document?.visibilityState==="hidden"?e():(e=qi(e),t(e),Wi(e))},ev=[200,500],tv=40,nv=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&vr(()=>{Qm();const n=Tn("INP");let r;const i=ms(t,Si),o=s=>{Cf(()=>{for(const c of s)i._processEntry(c);const u=i._estimateP98LongestInteraction();u&&u._latency!==n.value&&(n.value=u._latency,n.entries=u.entries,r())})},a=$t("event",o,{durationThreshold:t.durationThreshold??tv});r=vn(e,n,ev,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),Wi(()=>{o(a.takeRecords()),r(!0)}))})};class rv{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const iv=[2500,4e3],ov=(e,t={})=>{vr(()=>{const n=Ki(),r=Tn("LCP");let i;const o=ms(t,rv),a=u=>{t.reportAllChanges||(u=u.slice(-1));for(const c of u)o._processEntry(c),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-En(),0),r.entries=[c],i())},s=$t("largest-contentful-paint",a);if(s){i=vn(e,r,iv,t.reportAllChanges);const u=qi(()=>{a(s.takeRecords()),s.disconnect(),i(!0)});for(const c of["keydown","click","visibilitychange"])P.document&&addEventListener(c,()=>Cf(u),{capture:!0,once:!0})}})},av=[800,1800],Ea=e=>{P.document?.prerendering?vr(()=>Ea(e)):P.document?.readyState!=="complete"?addEventListener("load",()=>Ea(e),!0):setTimeout(e)},sv=(e,t={})=>{const n=Tn("TTFB"),r=vn(e,n,av,t.reportAllChanges);Ea(()=>{const i=mr();i&&(n.value=Math.max(i.responseStart-En(),0),n.entries=[i],r(!0))})},Kn={},yi={};let Mf,xf,Df,kf,Uf;function $f(e,t=!1){return Er("cls",e,fv,Mf,t)}function Bf(e,t=!1){return Er("lcp",e,pv,Df,t)}function uv(e){return Er("fid",e,dv,xf)}function cv(e){return Er("ttfb",e,_v,kf)}function lv(e){return Er("inp",e,hv,Uf)}function fn(e,t){return jf(e,t),yi[e]||(gv(e),yi[e]=!0),Ff(e,t)}function Sn(e,t){const n=Kn[e];if(n?.length)for(const r of n)try{r(t)}catch(i){zi&&S.error(`Error while triggering instrumentation handler.
17Type: ${e}
18Name: ${mt(r)}
19Error:`,i)}}function fv(){return Km(e=>{Sn("cls",{metric:e}),Mf=e},{reportAllChanges:!0})}function dv(){return Ym(e=>{Sn("fid",{metric:e}),xf=e})}function pv(){return ov(e=>{Sn("lcp",{metric:e}),Df=e},{reportAllChanges:!0})}function _v(){return sv(e=>{Sn("ttfb",{metric:e}),kf=e})}function hv(){return nv(e=>{Sn("inp",{metric:e}),Uf=e})}function Er(e,t,n,r,i=!1){jf(e,t);let o;return yi[e]||(o=n(),yi[e]=!0),r&&t({metric:r}),Ff(e,t,i?o:void 0)}
19function gv(e){const t={};e==="event"&&(t.durationThreshold=0),$t(e,n=>{Sn(e,{entries:n})},t)}function jf(e,t){Kn[e]=Kn[e]||[],Kn[e].push(t)}function Ff(e,t,n){return()=>{n&&n();const r=Kn[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function mv(e){return"duration"in e}function Io(e){return typeof e=="number"&&isFinite(e)}function et(e,t,n,{...r}){const i=H(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),fs(e,()=>{const o=mn({startTime:t,...r});return o&&o.end(n),o})}function vs(e){const t=W();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:o}=e,{release:a,environment:s,sendDefaultPii:u}=t.getOptions(),l=t.getIntegrationByName("Replay")?.getReplayId(),d=J(),f=d.getUser(),p=f!==void 0?f.email||f.id||f.ip_address:void 0;let _;try{_=d.getScopeData().contexts.profile.profile_id}catch{}const h={release:a,environment:s,user:p||void 0,profile_id:_||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":P.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...i};return mn({name:n,attributes:h,startTime:o,experimental:{standalone:!0}})}function Yi(){return P.addEventListener&&P.performance}function G(e){return e/1e3}function Hf(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function Gf(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Vf(e,t){let n,r=!1;function i(s){!r&&n&&t(s,n),r=!0}Wi(()=>{i("pagehide")});const o=e.on("beforeStartNavigationSpan",(s,u)=>{u?.isRedirect||(i("navigation"),o?.(),a?.())}),a=e.on("afterStartPageLoadSpan",s=>{n=s.spanContext().spanId,a?.()})}function vv(e){let t=0,n;if(!Gf("layout-shift"))return;const r=$f(({metric:i})=>{const o=i.entries[i.entries.length-1];o&&(t=i.value,n=o)},!0);Vf(e,(i,o)=>{Ev(t,n,o,i),r()})}function Ev(e,t,n,r){zi&&S.log(`Sending CLS span (${e})`);const i=G((de()||0)+(t?.startTime||0)),o=J().getScopeData().transactionName,a=t?Ze(t.sources[0]?.node):"Layout shift",s={[te]:"auto.http.browser.cls",[vt]:"ui.webvital.cls",[hn]:t?.duration||0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((c,l)=>{s[`cls.source.${l+1}`]=Ze(c.node)});const u=vs({name:a,transaction:o,attributes:s,startTime:i});u&&(u.addEvent("cls",{[_r]:"",[hr]:e}),u.end(i))}function Tv(e){let t=0,n;if(!Gf("largest-contentful-paint"))return;const r=Bf(({metric:i})=>{const o=i.entries[i.entries.length-1];o&&(t=i.value,n=o)},!0);Vf(e,(i,o)=>{Sv(t,n,o,i),r()})}function Sv(e,t,n,r){zi&&S.log(`Sending LCP span (${e})`);const i=G((de()||0)+(t?.startTime||0)),o=J().getScopeData().transactionName,a=t?Ze(t.element):"Largest contentful paint",s={[te]:"auto.http.browser.lcp",[vt]:"ui.webvital.lcp",[hn]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s["lcp.element"]=Ze(t.element)),t.id&&(s["lcp.id"]=t.id),t.url&&(s["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(s["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(s["lcp.renderTime"]=t.renderTime),t.size!=null&&(s["lcp.size"]=t.size));const u=vs({name:a,transaction:o,attributes:s,startTime:i});u&&(u.addEvent("lcp",{[_r]:"millisecond",[hr]:e}),u.end(i))}const yv=2147483647;let qu=0,re={},ue,bi;function bv({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Yi();if(r&&de()){r.mark&&P.performance.mark("sentry-tracing-init");const i=Pv(),o=t?Tv(n):Iv(),a=Lv(),s=e?vv(n):wv();return()=>{i(),o?.(),a(),s?.()}}return()=>{}}function Ov(){fn("longtask",({entries:e})=>{const t=Se();if(!t)return;const{op:n,start_timestamp:r}=H(t);for(const i of e){const o=G(de()+i.startTime),a=G(i.duration);n==="navigation"&&r&&o<r||et(t,o,o+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[te]:"auto.ui.browser.metrics"}})}})}function Rv(){new PerformanceObserver(t=>{const n=Se();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const i=G(de()+r.startTime),{start_timestamp:o,op:a}=H(n);if(a==="navigation"&&o&&i<o)continue;const s=G(r.duration),u={[te]:"auto.ui.browser.metrics"},c=r.scripts[0],{invoker:l,invokerType:d,sourceURL:f,sourceFunctionName:p,sourceCharPosition:_}=c;u["browser.script.invoker"]=l,u["browser.script.invoker_type"]=d,f&&(u["code.filepath"]=f),p&&(u["code.function"]=p),_!==-1&&(u["browser.script.source_char_position"]=_),et(n,i,i+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:u})}}).observe({type:"long-animation-frame",buffered:!0})}function Av(){fn("event",({entries:e})=>{const t=Se();if(t){for(const n of e)if(n.name==="click"){const r=G(de()+n.startTime),i=G(n.duration),o={name:Ze(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[te]:"auto.ui.browser.metrics"}},a=Yl(n.target);a&&(o.attributes["ui.component_name"]=a),et(t,r,r+i,o)}}})}function wv(){return $f(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(re.cls={value:e.value,unit:""},bi=t)},!0)}function Iv(){return Bf(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(re.lcp={value:e.value,unit:"millisecond"},ue=t)},!0)}function Pv(){return uv(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=G(de()),r=G(t.startTime);re.fid={value:e.value,unit:"millisecond"},re["mark.fid"]={value:n+r,unit:"second"}})}function Lv(){return cv(({metric:e})=>{e.entries[e.entries.length-1]&&(re.ttfb={value:e.value,unit:"millisecond"})})}function Nv(e,t){const n=Yi(),r=de();if(!n?.getEntries||!r)return;const i=G(r),o=n.getEntries(),{op:a,start_timestamp:s}=H(e);if(o.slice(qu).forEach(u=>{const c=G(u.startTime),l=G(Math.max(0,u.duration));if(!(a==="navigation"&&s&&i+c<s))switch(u.entryType){case"navigation":{xv(e,u,i);break}case"mark":case"paint":case"measure":{Cv(e,u,c,l,i,t.ignorePerformanceApiSpans);const d=Ki(),f=u.startTime<d.firstHiddenTime;u.name==="first-paint"&&f&&(re.fp={value:u.startTime,unit:"millisecond"}),u.name==="first-contentful-paint"&&f&&(re.fcp={value:u.startTime,unit:"millisecond"});break}case"resource":{Uv(e,u,u.name,c,l,i,t.ignoreResourceSpans);break}}}),qu=Math.max(o.length-1,0),$v(e),a==="pageload"){jv(re);const u=re["mark.fid"];
19u&&re.fid&&(et(e,u.value,u.value+G(re.fid.value),{name:"first input delay",op:"ui.action",attributes:{[te]:"auto.ui.browser.metrics"}}),delete re["mark.fid"]),t.recordClsOnPageloadSpan||delete re.cls,t.recordLcpOnPageloadSpan||delete re.lcp,Object.entries(re).forEach(([c,l])=>{qh(c,l.value,l.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",En()),Bv(e,t)}ue=void 0,bi=void 0,re={}}function Cv(e,t,n,r,i,o){if(["mark","measure"].includes(t.entryType)&&gt(t.name,o))return;const a=mr(!1),s=G(a?a.requestStart:0),u=i+Math.max(n,s),c=i+n,l=c+r,d={[te]:"auto.resource.browser.metrics"};u!==c&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=u),Mv(d,t),u<=l&&et(e,u,l,{name:t.name,op:t.entryType,attributes:d})}function Mv(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&er(i))e[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(er(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function xv(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{xr(e,t,r,n)}),xr(e,t,"secureConnection",n,"TLS/SSL"),xr(e,t,"fetch",n,"cache"),xr(e,t,"domainLookup",n,"DNS"),kv(e,t,n)}function xr(e,t,n,r,i=n){const o=Dv(n),a=t[o],s=t[`${n}Start`];!s||!a||et(e,r+G(s),r+G(a),{op:`browser.${i}`,name:t.name,attributes:{[te]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Dv(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function kv(e,t,n){const r=n+G(t.requestStart),i=n+G(t.responseEnd),o=n+G(t.responseStart);t.responseEnd&&(et(e,r,i,{op:"browser.request",name:t.name,attributes:{[te]:"auto.ui.browser.metrics"}}),et(e,o,i,{op:"browser.response",name:t.name,attributes:{[te]:"auto.ui.browser.metrics"}}))}function Uv(e,t,n,r,i,o,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(a?.includes(s))return;const u=Nt(n),c={[te]:"auto.resource.browser.metrics"};Po(c,t,"transferSize","http.response_transfer_size"),Po(c,t,"encodedBodySize","http.response_content_length"),Po(c,t,"decodedBodySize","http.decoded_response_content_length");const l=t.deliveryType;l!=null&&(c["http.response_delivery_type"]=l);const d=t.renderBlockingStatus;if(d&&(c["resource.render_blocking_status"]=d),u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop()),u.host&&(c["server.address"]=u.host),c["url.same_origin"]=n.includes(P.location.origin),t.nextHopProtocol!=null){const{name:_,version:h}=Hf(t.nextHopProtocol);c["network.protocol.name"]=_,c["network.protocol.version"]=h}const f=o+r,p=f+i;et(e,f,p,{name:n.replace(P.location.origin,""),op:s,attributes:c})}function $v(e){const t=P.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Io(n.rtt)&&(re["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Io(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Io(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function Bv(e,t){ue&&t.recordLcpOnPageloadSpan&&(ue.element&&e.setAttribute("lcp.element",Ze(ue.element)),ue.id&&e.setAttribute("lcp.id",ue.id),ue.url&&e.setAttribute("lcp.url",ue.url.trim().slice(0,200)),ue.loadTime!=null&&e.setAttribute("lcp.loadTime",ue.loadTime),ue.renderTime!=null&&e.setAttribute("lcp.renderTime",ue.renderTime),e.setAttribute("lcp.size",ue.size)),bi?.sources&&t.recordClsOnPageloadSpan&&bi.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,Ze(n.node)))}function Po(e,t,n,r){const i=t[n];i!=null&&i<yv&&(e[r]=i)}function jv(e){const t=mr(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function Fv(){return Yi()&&de()?fn("element",Hv):()=>{}}const Hv=({entries:e})=>{const t=Se(),n=t?Ee(t):void 0,r=n?H(n).description:J().getScopeData().transactionName;e.forEach(i=>
19{const o=i;if(!o.identifier)return;const a=o.name,s=o.renderTime,u=o.loadTime,[c,l]=u?[G(u),"load-time"]:s?[G(s),"render-time"]:[fe(),"entry-emission"],d=a==="image-paint"?G(Math.max(0,(s??0)-(u??0))):0,f={[te]:"auto.ui.browser.elementtiming",[vt]:"ui.elementtiming",[Ye]:"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":s,"element.load_time":u,"element.url":o.url||void 0,"element.identifier":o.identifier,"element.paint_type":a};Zh({name:`element[${o.identifier}]`,attributes:f,startTime:c,onlyIfParent:!0},p=>{p.end(c+d)})})},Gv=1e3;let Ku,Ta,Sa;function Vv(e){bt("dom",e),Ot("dom",Xv)}function Xv(){if(!P.document)return;const e=be.bind(null,"dom"),t=Wu(e,!0);P.document.addEventListener("click",t,!1),P.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const i=P[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(ve(i,"addEventListener",function(o){return function(a,s,u){if(a==="click"||a=="keypress")try{const c=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=c[a]=c[a]||{refCount:0};if(!l.handler){const d=Wu(e);l.handler=d,o.call(this,a,d,u)}l.refCount++}catch{}return o.call(this,a,s,u)}}),ve(i,"removeEventListener",function(o){return function(a,s,u){if(a==="click"||a=="keypress")try{const c=this.__sentry_instrumentation_handlers__||{},l=c[a];l&&(l.refCount--,l.refCount<=0&&(o.call(this,a,l.handler,u),l.handler=void 0,delete c[a]),Object.keys(c).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,a,s,u)}}))})}function zv(e){if(e.type!==Ta)return!1;try{if(!e.target||e.target._sentryId!==Sa)return!1}catch{}return!0}function qv(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function Wu(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Kv(n);if(qv(n.type,r))return;tr(n,"_sentryCaptured",!0),r&&!r._sentryId&&tr(r,"_sentryId",Yr());
19const i=n.type==="keypress"?"input":n.type;zv(n)||(e({event:n,name:i,global:t}),Ta=n.type,Sa=r?r._sentryId:void 0),clearTimeout(Ku),Ku=P.setTimeout(()=>{Sa=void 0,Ta=void 0},Gv)}}function Kv(e){try{return e.target}catch{return null}}let Dr;function Es(e){const t="history";bt(t,e),Ot(t,Wv)}function Wv(){if(P.addEventListener("popstate",()=>{const t=P.location.href,n=Dr;if(Dr=t,n===t)return;be("history",{from:n,to:t})}),!gm())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=Dr,o=Yv(String(r));if(Dr=o,i===o)return t.apply(this,n);be("history",{from:i,to:o})}return t.apply(this,n)}}ve(P.history,"pushState",e),ve(P.history,"replaceState",e)}function Yv(e){try{return new URL(e,P.location.origin).toString()}catch{return e}}const ti={};function Jv(e){const t=ti[e];if(t)return t;let n=P[e];if(_a(n))return ti[e]=n.bind(P);const r=P.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const o=i.contentWindow;o?.[e]&&(n=o[e]),r.head.removeChild(i)}catch(i){zi&&S.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(ti[e]=n.bind(P))}function Yu(e){ti[e]=void 0}const Zt="__sentry_xhr_v3__";function Xf(e){bt("xhr",e),Ot("xhr",Qv)}function Qv(){if(!P.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=new Error,o=fe()*1e3,a=zn(r[0])?r[0].toUpperCase():void 0,s=Zv(r[1]);if(!a||!s)return t.apply(n,r);n[Zt]={method:a,url:s,request_headers:{}},a==="POST"&&s.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const u=()=>{const c=n[Zt];if(c&&n.readyState===4){try{c.status_code=n.status}catch{}const l={endTimestamp:fe()*1e3,startTimestamp:o,xhr:n,virtualError:i};be("xhr",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(c,l,d){return u(),c.apply(l,d)}}):n.addEventListener("readystatechange",u),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(c,l,d){const[f,p]=d,_=l[Zt];return _&&zn(f)&&zn(p)&&(_.request_headers[f.toLowerCase()]=p),c.apply(l,d)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[Zt];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const o={startTimestamp:fe()*1e3,xhr:n};return be("xhr",o),t.apply(n,r)}})}function Zv(e){if(zn(e))return e;try{return e.toString()}catch{}}const Lo=[],ni=new Map,eE=60;function tE(){if(Yi()&&de()){const t=nE();return()=>{t()}}return()=>{}}const Ju={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 nE(){return lv(rE)}const rE=({metric:e})=>{if(e.value==null)return;const t=G(e.value);if(t>eE)return;const n=e.entries.find(_=>_.duration===e.value&&Ju[_.name]);if(!n)return;const{interactionId:r}=n,i=Ju[n.name],o=G(de()+n.startTime),a=Se(),s=a?Ee(a):void 0,c=(r!=null?ni.get(r):void 0)||s,l=c?H(c).description:J().getScopeData().transactionName,d=Ze(n.target),f={[te]:"auto.http.browser.inp",[vt]:`ui.interaction.${i}`,[hn]:n.duration},p=vs({name:d,transaction:l,attributes:f,startTime:o});p&&(p.addEvent("inp",{[_r]:"millisecond",[hr]:e.value}),p.end(o+t))};function iE(){const e=({entries:t})=>{const n=Se(),r=n&&Ee(n);t.forEach(i=>{if(!mv(i)||!r)return;const o=i.interactionId;if(o!=null&&!ni.has(o)){if(Lo.length>10){const a=Lo.shift();ni.delete(a)}Lo.push(o),ni.set(o,r)}})};fn("event",e),fn("first-input",e)}function oE(e,t=Jv("fetch")){let n=0,r=0;function i(o){const a=o.body.length;n+=a,r++;const s={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return Yu("fetch"),gi("No fetch implementation available");try{return t(e.url,s).then(u=>(n-=a,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return Yu("fetch"),n-=a,r--,gi(u)}}return Mg(e,i)}const aE=30,sE=50;function ya(e,t,n,r){const i={filename:e,function:t==="<anonymous>
19"?cn:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const uE=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,cE=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,lE=/\((\S*)(?::(\d+))(?::(\d+))\)/,fE=e=>{const t=uE.exec(e);if(t){const[,r,i,o]=t;return ya(r,cn,+i,+o)}const n=cE.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const a=lE.exec(n[2]);a&&(n[2]=a[1],n[3]=a[2],n[4]=a[3])}const[i,o]=zf(n[1]||cn,n[2]);return ya(o,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},dE=[aE,fE],pE=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,_E=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,hE=e=>{const t=pE.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=_E.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],i=t[1]||cn;return[i,r]=zf(i,r),ya(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},gE=[sE,hE],mE=[dE,gE],vE=ih(...mE),zf=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:cn,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Oe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,kr=1024,EE="Breadcrumbs",TE=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:EE,setup(n){t.console&&Qg(OE(n)),t.dom&&Vv(bE(n,t.dom)),t.xhr&&Xf(RE(n)),t.fetch&&Rf(AE(n)),t.history&&Es(wE(n)),t.sentry&&n.on("beforeSendEvent",yE(n))}}}),SE=TE;function yE(e){return function(n){W()===e&&kt({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:At(n)},{event:n})}}function bE(e,t){return function(r){if(W()!==e)return;let i,o,a=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>kr&&(Oe&&S.warn(`\`dom.maxStringLength\` cannot exceed ${kr}, but a value of ${s} was configured. Sentry will use ${kr} instead.`),s=kr),typeof a=="string"&&(a=[a]);try{const c=r.event,l=IE(c)?c.target:c;i=Ze(l,{keyAttrs:a,maxStringLength:s}),o=Yl(l)}catch{i="<unknown>"}if(i.length===0)return;const u={category:`ui.${r.name}`,message:i};o&&(u.data={"ui.component_name":o}),kt(u,{event:r.event,name:r.name,global:r.global})}}function OE(e){return function(n){if(W()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:em(n.level),message:yu(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${yu(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;kt(r,{input:n.args,level:n.level})}}function RE(e){return function(n){if(W()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,o=n.xhr[Zt];if(!r||!i||!o)return;const{method:a,url:s,status_code:u,body:c}=o,l={method:a,url:s,status_code:u},d={xhr:n.xhr,input:c,startTimestamp:r,endTimestamp:i},f={category:"xhr",data:l,type:"http",level:Of(u)};e.emit("beforeOutgoingRequestBreadcrumb",f,d),kt(f,d)}}function AE(e){return function(n){if(W()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const o=n.fetchData,a={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},s={category:"fetch",data:o,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,a),kt(s,a)}else{const o=n.response,a={...n.fetchData,status_code:o?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,o?.status;const s={input:n.args,response:o,startTimestamp:r,endTimestamp:i},u={category:"fetch",data:a,type:"http",level:Of(a.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",u,s),kt(u,s)}}}function wE(e){return function(n){if(W()!==e)return;let r=n.from,i=n.to;const o=Nt(C.location.href);let a=r?Nt(r):void 0;const s=Nt(i);a?.path||(a=o),o.protocol===s.protocol&&o.host===s.host&&(i=s.relative),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),kt({category:"navigation",data:{from:r,to:i}})}}function IE(e){return!!e&&!!e.target}const PE=["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"],LE="BrowserApiErrors",NE=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:LE,setupOnce(){t.setTimeout&&ve(C,"setTimeout",Qu),t.setInterval&&ve(C,"setInterval",Qu),t.requestAnimationFrame&&ve(C,"requestAnimationFrame",ME),t.XMLHttpRequest&&"XMLHttpRequest"in C&&ve(XMLHttpRequest.prototype,"send",xE);const n=t.eventTarget;
19n&&(Array.isArray(n)?n:PE).forEach(i=>DE(i,t))}}}),CE=NE;function Qu(e){return function(...t){const n=t[0];return t[0]=ln(n,{mechanism:{data:{function:mt(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function ME(e){return function(t){return e.apply(this,[ln(t,{mechanism:{data:{function:"requestAnimationFrame",handler:mt(e)},handled:!1,type:"instrument"}})])}}function xE(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&ve(n,i,function(o){const a={mechanism:{data:{function:i,handler:mt(o)},handled:!1,type:"instrument"}},s=cs(o);return s&&(a.mechanism.data.handler=mt(s)),ln(o,a)})}),e.apply(this,t)}}function DE(e,t){const r=C[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(ve(r,"addEventListener",function(i){return function(o,a,s){try{kE(a)&&(a.handleEvent=ln(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:mt(a),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&UE(this,o,a),i.apply(this,[o,ln(a,{mechanism:{data:{function:"addEventListener",handler:mt(a),target:e},handled:!1,type:"instrument"}}),s])}}),ve(r,"removeEventListener",function(i){return function(o,a,s){try{const u=a.__sentry_wrapped__;u&&i.call(this,o,u,s)}catch{}return i.call(this,o,a,s)}}))}function kE(e){return typeof e.handleEvent=="function"}function UE(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const $E=()=>({name:"BrowserSession",setupOnce(){if(typeof C.document>"u"){Oe&&S.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}bu({ignoreDuration:!0}),Ou(),Es(({from:e,to:t})=>{e!==void 0&&e!==t&&(bu({ignoreDuration:!0}),Ou())})}}),BE="GlobalHandlers",jE=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:BE,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(HE(n),Zu("onerror")),t.onunhandledrejection&&(GE(n),Zu("onunhandledrejection"))}}}),FE=jE;function HE(e){nf(t=>{const{stackParser:n,attachStacktrace:r}=qf();if(W()!==e||wf())return;const{msg:i,url:o,line:a,column:s,error:u}=t,c=zE(gs(n,u||i,void 0,r,!1),o,a,s);c.level="error",Jl(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function GE(e){rf(t=>{const{stackParser:n,attachStacktrace:r}=qf();if(W()!==e||wf())return;const i=VE(t),o=er(i)?XE(i):gs(n,i,void 0,r,!0);o.level="error",Jl(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function VE(e){if(er(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function XE(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function zE(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=r,l=n,d=zn(t)&&t.length>0?t:gr();return u.length===0&&u.push({colno:c,filename:d,function:cn,in_app:!0,lineno:l}),e}function Zu(e){Oe&&S.log(`Global Handler attached: ${e}`)}function qf(){return W()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const qE=()=>({name:"HttpContext",preprocessEvent(e){if(!C.navigator&&!C.location&&!C.document)return;const t=ps(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),KE="cause",WE=5,YE="LinkedErrors",JE=((e={})=>{const t=e.limit||WE,n=e.key||KE;return{name:YE,preprocessEvent(r,i,o){const a=o.getOptions();Jg(_s,a.stackParser,n,t,r,i)}}}),QE=JE;function ZE(){return eT()?(Oe&&us(()=>{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 eT(){if(typeof C.window>"u")return!1;const e=C;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=gr(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(C===C.top&&r.some(o=>n.startsWith(`${o}://`)))}function tT(e){return[Gg(),Bg(),CE(),SE(),FE(),QE(),rm(),qE(),$E()]}function nT(e={}){const t=!e.skipBrowserExtensionCheck&&ZE(),n={...e,enabled:t?!1:e.enabled,stackParser:oh(e.stackParser||vE),integrations:pg({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?tT():e.defaultIntegrations}),transport:e.transport||oE};return Og($m,n)}function ke(e=0){return((de()||performance.timeOrigin)+e)/1e3}function rT(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=Hf(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return de()?[...t,["http.request.redirect_start",ke(e.redirectStart)],["http.request.fetch_start",ke(e.fetchStart)],["http.request.domain_lookup_start",ke(e.domainLookupStart)],["http.request.domain_lookup_end",ke(e.domainLookupEnd)],["http.request.connect_start",ke(e.connectStart)],["http.request.secure_connection_start",ke(e.secureConnectionStart)],["http.request.connection_end",ke(e.connectEnd)],["http.request.request_start",ke(e.requestStart)],["http.request.response_start",ke(e.responseStart)],["http.request.response_end",ke(e.responseEnd)]]:t}const ec=new WeakMap,No=new Map,Kf={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function iT(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:a,tracePropagationTargets:s,onRequestSpanStart:u}={...Kf,...t},c=typeof o=="function"?o:f=>!0,l=f=>aT(f,s),d={};n&&(e.addEventProcessor(f=>(f.type==="transaction"&&f.spans&&f.spans.forEach(p=>{if(p.op==="http.client"){const _=No.get(p.span_id);_&&(p.timestamp=_/1e3,No.delete(p.span_id))}}),f)),i&&Em(f=>{if(f.response){const p=ec.get(f.response);p&&f.endTimestamp&&No.set(p,f.endTimestamp)}}),Rf(f=>{const p=lm(f,c,l,d);if(f.response&&f.fetchData.__span&&ec.set(f.response,f.fetchData.__span),p){const _=Wf(f.fetchData.url),h=_?Nt(_).host:void 0;p.setAttributes({"http.url":_,"server.address":h}),a&&tc(p),u?.(p,{headers:f.headers})}})),r&&Xf(f=>{const p=sT(f,c,l,d);if(p){a&&tc(p);let _;try{_=new Headers(f.xhr.__sentry_xhr_v3__?.request_headers)}catch{}u?.(p,{headers:_})}})}function oT(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.
19initiatorType==="xmlhttprequest")}function tc(e){const{url:t}=H(e).data;if(!t||typeof t!="string")return;const n=fn("resource",({entries:r})=>{r.forEach(i=>{oT(i)&&i.name.endsWith(t)&&(rT(i).forEach(a=>e.setAttribute(...a)),setTimeout(n))})})}function aT(e,t){const n=gr();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const o=r.origin===i;return t?gt(r.toString(),t)||o&&gt(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?gt(e,t):r}}function sT(e,t,n,r){const i=e.xhr,o=i?.[Zt];if(!i||i.__sentry_own_request__||!o)return;const{url:a,method:s}=o,u=xt()&&t(a);if(e.endTimestamp&&u){const h=i.__sentry_xhr_span_id__;if(!h)return;const g=r[h];g&&o.status_code!==void 0&&(zl(g,o.status_code),g.end(),delete r[h]);return}const c=Wf(a),l=Nt(c||a),d=cm(a),f=!!Se(),p=u&&f?mn({name:`${s} ${d}`,attributes:{url:a,type:"xhr","http.method":s,"http.url":c,"server.address":l?.host,[te]:"auto.http.browser",[vt]:"http.client",...l?.search&&{"http.query":l?.search},...l?.hash&&{"http.fragment":l?.hash}}}):new Et;i.__sentry_xhr_span_id__=p.spanContext().spanId,r[i.__sentry_xhr_span_id__]=p,n(a)&&uT(i,xt()&&f?p:void 0);const _=W();return _&&_.emit("beforeOutgoingRequestSpan",p,e),p}function uT(e,t){const{"sentry-trace":n,baggage:r}=Ef({span:t});n&&cT(e,n,r)}function cT(e,t,n){const r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const i=r?.baggage;(!i||!lT(i))&&e.setRequestHeader("baggage",n)}}catch{}}function lT(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function Wf(e){try{return new URL(e,C.location.origin).href}catch{return}}function fT(){C.document?C.document.addEventListener("visibilitychange",()=>{const e=Se();if(!e)return;const t=Ee(e);if(C.document.hidden&&t){const n="cancelled",{op:r,status:i}=H(t);Oe&&S.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:un,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Oe&&S.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const dT=3600,Yf="sentry_previous_trace",pT="sentry.previous_trace";function _T(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?mT():void 0;e.on("spanStart",a=>{if(Ee(a)!==a)return;const s=J().getPropagationContext();i=hT(i,a,s),r&&gT(i)});let o=!0;n&&e.on("beforeSampling",a=>{if(!i)return;const s=J(),u=s.getPropagationContext();if(o&&u.parentSpanId){o=!1;return}s.setPropagationContext({...u,dsc:{...u.dsc,sample_rate:String(i.sampleRate),sampled:String(ba(i.spanContext))},sampleRand:i.sampleRand}),a.parentSampled=ba(i.spanContext),a.parentSampleRate=i.sampleRate,a.spanAttributes={...a.spanAttributes,[ah]:i.sampleRate}})}function hT(e,t,n){const r=H(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[Hl])}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return o;const a=e.spanContext;return a.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=dT&&(Oe&&S.log(`Adding previous_trace ${a} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:a,attributes:{[sh]:"previous_trace"}}),t.setAttribute(pT,`${a.traceId}-${a.spanId}-${ba(a)?1:0}`)),o)}function gT(e){try{C.sessionStorage.setItem(Yf,JSON.stringify(e))}catch(t){Oe&&S.warn("Could not store previous trace in sessionStorage",t)}}function mT(){try{const e=C.sessionStorage?.getItem(Yf);return JSON.parse(e)}catch{return}}function ba(e){return e.traceFlags===1}const vT="BrowserTracing",ET={...Zr,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...Kf},TT=((e={})=>{const t={name:void 0,source:void 0},n=C.document,{enableInp:r,enableElementTiming:i,enableLongTask:o,enableLongAnimationFrame:a,_experiments:{enableInteractions:s,enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c},beforeStartSpan:l,idleTimeout:d,finalTimeout:f,childSpanTimeout:p,markBackgroun
19dSpan:_,traceFetch:h,traceXHR:g,trackFetchStreamPerformance:E,shouldCreateSpanForRequest:b,enableHTTPTimings:v,ignoreResourceSpans:T,ignorePerformanceApiSpans:O,instrumentPageLoad:m,instrumentNavigation:R,detectRedirects:U,linkPreviousTrace:j,consistentTraceSampling:ne,onRequestSpanStart:ye}={...ET,...e};let X,se;function pe($,z,M=!0){const Y=z.op==="pageload",Z=l?l(z):z,Me=Z.attributes||{};if(z.name!==Z.name&&(Me[Ye]="custom",Z.attributes=Me),!M){const Ve=ss();mn({...Z,startTime:Ve}).end(Ve);return}t.name=Z.name,t.source=Me[Ye];const _e=lf(Z,{idleTimeout:d,finalTimeout:f,childSpanTimeout:p,disableAutoFinish:Y,beforeSpanEnd:Ve=>{X?.(),Nv(Ve,{recordClsOnPageloadSpan:!u,recordLcpOnPageloadSpan:!c,ignoreResourceSpans:T,ignorePerformanceApiSpans:O}),rc($,void 0);const zt=J(),Pr=zt.getPropagationContext();zt.setPropagationContext({...Pr,traceId:_e.spanContext().traceId,sampled:Fi(_e),dsc:Mt(Ve)})}});rc($,_e);function Ge(){n&&["interactive","complete"].includes(n.readyState)&&$.emit("idleSpanEnableAutoFinish",_e)}Y&&n&&(n.addEventListener("readystatechange",()=>{Ge()}),Ge())}return{name:vT,setup($){if(Mh(),X=bv({recordClsStandaloneSpans:u||!1,recordLcpStandaloneSpans:c||!1,client:$}),r&&tE(),i&&Fv(),a&&ie.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Rv():o&&Ov(),s&&Av(),U&&n){const M=()=>{se=fe()};addEventListener("click",M,{capture:!0}),addEventListener("keydown",M,{capture:!0,passive:!0})}function z(){const M=ir($);M&&!H(M).timestamp&&(Oe&&S.log(`[Tracing] Finishing current active span with op: ${H(M).op}`),M.setAttribute(hi,"cancelled"),M.end())}$.on("startNavigationSpan",(M,Y)=>{if(W()!==$)return;if(Y?.isRedirect){Oe&&S.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),pe($,{op:"navigation.redirect",...M},!1);return}z(),as().setPropagationContext({traceId:_i(),sampleRand:Math.random()});const Z=J();Z.setPropagationContext({traceId:_i(),sampleRand:Math.random()}),Z.setSDKProcessingMetadata({normalizedRequest:void 0}),pe($,{op:"navigation",...M})}),$.on("startPageLoadSpan",(M,Y={})=>{if(W()!==$)return;z();const Z=Y.sentryTrace||nc("sentry-trace"),Me=Y.baggage||nc("baggage"),_e=uh(Z,Me),Ge=J();Ge.setPropagationContext(_e),Ge.setSDKProcessingMetadata({normalizedRequest:ps()}),pe($,{op:"pageload",...M})})},afterAllSetup($){let z=gr();if(j!=="off"&&_T($,{linkPreviousTrace:j,consistentTraceSampling:ne}),C.location){if(m){const M=de();ST($,{name:C.location.pathname,startTime:M?M/1e3:void 0,attributes:{[Ye]:"url",[te]:"auto.pageload.browser"}})}R&&Es(({to:M,from:Y})=>{if(Y===void 0&&z?.indexOf(M)!==-1){z=void 0;return}z=void 0;const Z=bf(M),Me=ir($),_e=Me&&U&&OT(Me,se);yT($,{name:Z?.pathname||C.location.pathname,attributes:{[Ye]:"url",[te]:"auto.navigation.browser"}},{url:M,isRedirect:_e})})}_&&fT(),s&&bT($,d,f,p,t),r&&iE(),iT($,{traceFetch:h,traceXHR:g,trackFetchStreamPerformance:E,tracePropagationTargets:$.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:b,enableHTTPTimings:v,onRequestSpanStart:ye})}}});function ST(e,t,n){e.emit("startPageLoadSpan",t,n),J().setTransactionName(t.name);const r=ir(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function yT(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const o=J();return o.setTransactionName(t.name),r&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...ps(),url:r}}),ir(e)}function nc(e){return C.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function bT(e,t,n,r,i){const o=C.document;let a;const s=()=>{const u="ui.action.click",c=ir(e);if(c){const l=H(c).op;if(["navigation","pageload"].includes(l)){Oe&&S.warn(`[Tracing] Did not create ${u} span because a pageload or navigation span is in progress.`);return}}if(a&&(a.setAttribute(hi,"interactionInterrupted"),a.end(),a=void 0),!i.name){Oe&&S.warn(`[Tracing] Did not create ${u} transaction because _latestRouteName is missing.`);return}a=lf({name:i.name,op:u,attributes:{[Ye]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};
19o&&addEventListener("click",s,{capture:!0})}const Jf="_sentry_idleSpan";function ir(e){return e[Jf]}function rc(e,t){tr(e,Jf,t)}const ic=.3;function OT(e,t){const n=H(e),r=ss(),i=n.start_timestamp;return!(r-i>ic||t&&r-t<=ic)}const RT="BrowserTracing";function AT(e){e.integrations&&Array.isArray(e.integrations)&&e.integrations.some(r=>r.name===RT)&&us(()=>{console.warn("browserTracingIntegration is not fully compatible with @sentry/react-router. Please use reactRouterTracingIntegration instead.")}),vf(e,"react-router",["react-router","browser"]);const t=nT(e);return ch("runtime","browser"),t}const{slice:wT,forEach:IT}=[];function PT(e){return IT.call(wT.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const oc=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,LT=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let o=`${e}=${i}`;if(r.maxAge>0){const a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(a)}`}if(r.domain){if(!oc.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!oc.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invali
19d");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},ac={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=LT(e,encodeURIComponent(t),i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e){this.create(e,"",-1)}};var NT={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return ac.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:o}=t;n&&typeof document<"u"&&ac.create(n,e,r,i,o)}},CT={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const o=r.substring(1).split("&");for(let a=0;a<o.length;a++){const s=o[a].indexOf("=");s>0&&o[a].substring(0,s)===t&&(n=o[a].substring(s+1))}}return n}};let Mn=null;const sc=()=>{if(Mn!==null)return Mn;try{Mn=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Mn=!1}return Mn};var MT={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&sc())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&sc()&&window.localStorage.setItem(n,e)}};let xn=null;const uc=()=>{if(xn!==null)return xn;try{xn=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{xn=!1}return xn};var xT={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&uc())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&uc()&&window.sessionStorage.setItem(n,e)}},DT={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let o=0;o<n.length;o++)t.push(n[o]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},kT={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},UT={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},$T={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let Qf=!1;try{document.cookie,Qf=!0}catch{}const Zf=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Qf||Zf.splice(1,1);const BT=()=>({order:Zf,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class ed{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=PT(n,this.options||{},BT()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(NT),this.addDetector(CT),this.addDetector(MT),this.addDetector(xT),this.addDetector(DT),this.addDetector(kT),this.addDetector(UT),this.addDetector($T)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}
19cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}ed.type="languageDetector";const jT=Vi(wh);var td,cc=jT;cc.createRoot,td=cc.hydrateRoot;function FT(e){return oe.createElement(gh,{flushSync:Ih.flushSync,...e})}var y=null,Dn=null;function HT(){if(!y&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){const e=document.querySelector("script[rr-importmap]");if(e?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(e.textContent).integrity}catch(t){console.error("Failed to parse import map",t)}}y={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function GT({getContext:e,instrumentations:t}){if(HT(),!y)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let n=y;if(!y.stateDecodingPromise){let a=y.context.stream;ef(a,"No stream found for single fetch decoding"),y.context.stream=void 0,y.stateDecodingPromise=mh(a,window).then(s=>{y.context.state=s.value,n.stateDecodingPromise.value=!0}).catch(s=>{n.stateDecodingPromise.error=s})}if(y.stateDecodingPromise.error)throw y.stateDecodingPromise.error;if(!y.stateDecodingPromise.value)throw y.stateDecodingPromise;let r=vh(y.manifest.routes,y.routeModules,y.context.state,y.context.ssr,y.context.isSpaMode),i;if(y.context.isSpaMode){let{loaderData:a}=y.context.state;y.manifest.routes.root?.hasLoader&&a&&"root"in a&&(i={loaderData:{root:a.root}})}else i=Ph({state:y.context.state,routes:r,getRouteInfo:a=>({clientLoader:y.routeModules[a]?.clientLoader,hasLoader:y.manifest.routes[a]?.hasLoader===!0,hasHydrateFallback:y.routeModules[a]?.HydrateFallback!=null}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:y.context.isSpaMode});window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},"");let o=Eh({routes:r,history:yh(),basename:y.context.basename,getContext:e,hydrationData:i,hydrationRouteProperties:Rh,instrumentations:t,mapRouteProperties:Oh,future:{v8_passThroughRequests:y.context.future.v8_passThroughRequests},dataStrategy:Sh(()=>o,y.manifest,y.routeModules,y.context.ssr,y.context.basename,y.context.future.v8_trailingSlashAwareDataRequests),patchRoutesOnNavigation:Th(()=>o,y.manifest,y.routeModules,y.context.ssr,y.context.routeDiscovery,y.context.isSpaMode,y.context.basename)});return y.router=o,o.state.initialized&&(y.routerInitialized=!0,o.initialize()),o.createRoutesForHMR=bh,window.__reactRouterDataRouter=o,o}function VT(e){Dn||(Dn=GT({getContext:e.getContext,instrumentations:e.instrumentations}));let[t,n]=oe.useState(void 0);oe.useEffect(()=>{},[]),oe.useEffect(()=>{},[t]);let[r,i]=oe.useState(Dn.state.location);return oe.useLayoutEffect(()=>{y&&y.router&&!y.routerInitialized&&(y.routerInitialized=!0,y.router.initialize())},[]),oe.useLayoutEffect(()=>{if(y&&y.router)return y.router.subscribe(o=>{o.location!==r&&i(o.location)})},[r]),ef(y,"ssrInfo unavailable for HydratedRouter"),ph(Dn,y.manifest,y.routeModules,y.context.ssr,y.context.routeDiscovery,y.context.isSpaMode),oe.createElement(oe.Fragment,null,oe.createElement(_h.Provider,{value:{manifest:y.manifest,routeModules:y.routeModules,future:y.context.future,criticalCss:t,ssr:y.context.ssr,isSpaMode:y.context.isSpaMode,routeDiscovery:y.context.routeDiscovery}},oe.createElement(hh,{location:r},oe.createElement(FT,{router:Dn,useTransitions:e.useTransitions,onError:e.onError}))),oe.createElement(oe.Fragment,null))}const XT=new Set(["/focus/mobile/pair","/focus/mobile/pair/"]),zT=()=>{if(typeof window>"u"||!window.history?.replaceState)return;const{hash:e,pathname:t,search:n}=window.location;!e||!XT.has(t)||window.history.replaceState(window.history.state,"",`${t}${n}`)},qT=e=>{const t=e.exception?.values?.[0]?.value;return t&&t.includes("Failed to fetch")?null:Ql(e)},KT=e=>Ql(e);function tt(e,t){return typeof e===t}function Ji(e,t){return Object.prototype.toString.call(e)===`[object ${t}]`}
vendor: 4,940 bytes, lines 19-20
19function nd(e,t){try{return e instanceof t}catch{return!1}}const Tr=(e=>tt(e,"null")),yn=(e=>tt(e,"string")),WT=(e=>tt(e,"number")&&!isNaN(e)||tt(e,"bigint")),YT=(e=>tt(e,"boolean")),je=(e=>!Tr(e)&&tt(e,"object")),bn=(e=>tt(e,"function")),or=(e=>Ji(e,"Array")),JT=(e=>!je(e)&&!bn(e)),QT=typeof Event<"u",ZT=(e=>QT&&nd(e,Event)),eS=typeof Error<"u",Ts=(e=>eS&&nd(e,Error)),tS=(e=>Ji(e,"ErrorEvent")),nS=(e=>Ji(e,"DOMError")),rS=(e=>Ji(e,"DOMException"));function rt(e){return e==null?!0:or(e)||yn(e)?e.length===0:je(e)?Object.keys(e).length===0:!1}function Tt(e,t){if(e===t)return!0;if(tt(e,"number")&&isNaN(e))return tt(t,"number")&&isNaN(t);const n=or(e),r=or(t);if(n!==r)return!1;if(n&&r){const a=e.length;if(a!==t.length)return!1;for(let s=a;s--!==0;)if(!Tt(e[s],t[s]))return!1;return!0}const i=je(e),o=je(t);if(i!==o)return!1;if(e&&t&&i&&o){const a=Object.keys(e),s=Object.keys(t),u=a.length,c=s.length;if(u!==c)return!1;for(let l of a)if(!s.includes(l))return!1;for(let l of a)if(!Tt(e[l],t[l]))return!1;return!0}return!1}function ft(){return Date.now()}function Qi(){return new Date().toISOString()}function Zi(e){return new Date(e).toISOString()}var ce;(function(e){e.TRACE="trace",e.DEBUG="debug",e.INFO="info",e.LOG="log",e.WARN="warn",e.ERROR="error"})(ce||(ce={}));const iS=ce.LOG,oS=[ce.TRACE,ce.DEBUG,ce.INFO,ce.LOG,ce.WARN,ce.ERROR];function Je(){}function aS(e){const{size:t,concurrency:n}=e,r=[];let i=0;const o=()=>{if(i<n&&r.length){const{producer:s,resolve:u,reject:c}=r.shift();i++,s().then(l=>{i--,o(),u(l)},l=>{i--,o(),c(l)})}};return{add:s=>{if(r.length+i>=t)throw new Error("Task buffer full");return new Promise((u,c)=>{r.push({producer:s,resolve:u,reject:c}),o()})}}}const lc="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789";function Bt(e=10){return Array.from(Array(e)).map(()=>lc[Math.floor(Math.random()*lc.length)]).join("")}const Ct=typeof globalThis<"u"||typeof globalThis<"u"?globalThis:typeof self<"u"?self:void 0;function sS(e){return Ct?.[`__faroBundleId_${e}`]}function uS(){const e=new WeakSet;return function(t,n){if(je(n)&&n!==null){if(e.has(n))return null;e.add(n)}return n}}function Sr(e={}){return JSON.stringify(e??{},uS())}function eo(e={}){const t={};for(const[n,r]of Object.entries(e))t[n]=je(r)&&r!==null?Sr(r):String(r);return t}class Ce{constructor(){this.subscribers=[]}subscribe(t){return this.subscribers.push(t),{unsubscribe:()=>this.unsubscribe(t)}}unsubscribe(t){this.subscribers=this.subscribers.filter(n=>n!==t)}notify(t){this.subscribers.forEach(n=>n(t))}first(){const t=new Ce,n=o=>{t.notify(o),r.unsubscribe()},r=this.subscribe(n),i=t.unsubscribe.bind(t);return this.withUnsubscribeOverride(t,i,n)}takeWhile(t){const n=new Ce,r=o=>{t(o)?n.notify(o):n.unsubscribe(r)};this.subscribe(r);const i=n.unsubscribe.bind(n);return this.withUnsubscribeOverride(n,i,r)}filter(t){const n=new Ce,r=o=>{t(o)&&n.notify(o)};this.subscribe(r);const i=n.unsubscribe.bind(n);return this.withUnsubscribeOverride(n,i,r)}merge(...t){const n=new Ce,r=[];t.forEach(o=>{const a=o.subscribe(s=>{n.notify(s)});r.push(a)});const i=n.unsubscribeAll.bind(n);return n.unsubscribe=()=>{r.forEach(o=>o.unsubscribe()),i()},n}withUnsubscribeOverride(t,n,r){return t.unsubscribe=i=>{n(i),this.unsubscribe(r)},t}unsubscribeAll(){this.subscribers=[]}}const cS=250,lS=50;class fS{constructor(t,n){var r,i;this.signalBuffer=[],this.itemLimit=(r=n?.itemLimit)!==null&&r!==void 0?r:lS,this.sendTimeout=(i=n?.sendTimeout)!==null&&i!==void 0?i:cS,this.paused=n?.paused||!1,this.sendFn=t,this.flushInterval=-1,this.paused||this.start(),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&this.flush()})}addItem(t){this.paused||(this.signalBuffer.push(t),this.signalBuffer.length>=this.itemLimit&&this.flush())}start(){this.paused=!1,this.sendTimeout>0&&(this.flushInterval=window.setInterval(()=>this.flush(),this.sendTimeout))}pause(){this.paused=!0,clearInterval(this.flushInterval)}groupItems(t){const n=new Map;return t.forEach(r=>{const i=JSON.stringify(r.meta);let o=n.get(i);o===void 0?o=[r]:o=[...o,r],n.set(i,o)}),Array.from(n.values())}flush(){if(this.paused||this.signalBuffer.length===0)return;this.groupItems(this.signalBuffer).forEach(this.sendFn),this.signalBuffer=[]}}var ee;(function(e){e.EXCEPTION="exception",e.LOG="log",e.MEASUREMENT="measurement",e.TRACE="trace",e.EVENT="event"})(ee||(ee={}));const dS={[ee.EXCEPTION]:"exceptions",[ee.LOG]:"logs",[ee.MEASUREMENT]:"measurements",[ee.TRACE]:"traces",[ee.EVENT]:"events"};function pS(e,t,n,r){var i;t.debug("Initializing transports");const o=[];let a=n.paused,s=[];const u=(...O)=>{t.debug("Adding transports"),O.forEach(m=>{if(t.debug(`Adding "${m.name}" transport`),o.some(U=>U===m)){t.warn(`Transport ${m.name} is already added`);return}m.unpatchedConsole=e,m.internalLogger=t,m.config=n,m.metas=r,o.push(m)})},c=(...O)=>{t.debug(`Adding beforeSendHooks
20`,s),O.forEach(m=>{m&&s.push(m)})},l=O=>{let m=O;
20for(const R of s){const U=m.map(R).filter(Boolean);if(U.length===0)return[];m=_S(U,n)}return m},d=O=>{const m=l(O);if(m.length!==0)for(const R of o)t.debug(`Transporting item using ${R.name}
21`,m),R.isBatched()&&R.send(m)},f=O=>{var m,R;if(!((m=n.batching)===null||m===void 0)&&m.enabled&&o.every(j=>j.isBatched()))return;const[U]=l([O]);if(U!==void 0)for(const j of o)t.debug(`Transporting item using ${j.name}
22`,U),j.isBatched()?!((R=n.batching)===null||R===void 0)&&R.enabled||j.send([U]):j.send(U)};let p;return!((i=n.batching)===null||i===void 0)&&i.enabled&&(p=new fS(d,{sendTimeout:n.batching.sendTimeout,itemLimit:n.batching.itemLimit,paused:a})),{add:u,addBeforeSendHooks:c,getBeforeSendHooks:()=>[...s],execute:O=>{var m;a||(!((m=n.batching)===null||m===void 0)&&m.enabled&&p?.addItem(O),f(O))},isPaused:()=>a,pause:()=>{t.debug("Pausing transports"),p?.pause(),a=!0},remove:(...O)=>{t.debug("Removing transports"),O.forEach(m=>{t.debug(`Removing "${m.name}" transport`);const R=o.indexOf(m);if(R===-1){t.warn(`Transport "${m.name}" is not added`);return}o.splice(R,1)})},removeBeforeSendHooks:(...O)=>{s.filter(m=>!O.includes(m))},get transports(){return[...o]},unpause:()=>{t.debug("Unpausing transports"),p?.start(),a=!1}}}function _S(e,t){if(t.preserveOriginalError)for(const n of e)n.type===ee.EXCEPTION&&delete n.payload.originalError;return e}var st;(function(e){e[e.OFF=0]="OFF",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.VERBOSE=4]="VERBOSE"})(st||(st={}));const hS="Faro",Ss={debug:Je,error:Je,info:Je,prefix:hS,warn:Je},rd=st.ERROR,to=Object.assign({},console);let Co=to;function gS(e){var t;return Co=(t=e.unpatchedConsole)!==null&&t!==void 0?t:Co,Co}function id(e=to,t=rd){const n=Ss;return t>st.OFF&&(n.error=t>=st.ERROR?function(...r){e.error(`${n.prefix}
23`,...r)}:Je,n.warn=t>=st.WARN?function(...r){e.warn(`${n.prefix}
24`,...r)}:Je,n.info=t>=st.INFO?function(...r){e.info(`${n.prefix}
25`,...r)}:Je,n.debug=t>=st.VERBOSE?function(...r){e.debug(`${n.prefix}
26`,...r)}:Je),n}let fc=Ss;function mS(e,t){return fc=id(e,t.internalLoggerLevel),fc}class od{constructor(){this.unpatchedConsole=to,this.internalLogger=Ss,this.config={},this.metas={}}logDebug(...t){this.internalLogger.debug(`${this.name}
27`,...t)}logInfo(...t){this.internalLogger.info(`${this.name}
28`,...t)}logWarn(...t){this.internalLogger.warn(`${this.name}
29`,...t)}logError(...t){this.internalLogger.error(`${this.name}
30`,...t)}}class vS extends od{isBatched(){return!1}getIgnoreUrls(){return[]}}function ES(e){e.transports.add(...e.config.transports),e.transports.addBeforeSendHooks(e.config.beforeSend)}function TS(e,t){var n,r;if(t===void 0)return e;if(e===void 0)return{resourceSpans:t};const i=(n=e.resourceSpans)===null||n===void 0?void 0:n[0];if(i===void 0)return e;const o=i?.scopeSpans||[],a=((r=t?.[0])===null||r===void 0?void 0:r.scopeSpans)||[];return Object.assign(Object.assign({},e),{resourceSpans:[Object.assign(Object.assign({},i),{scopeSpans:[...o,...a]})]})}function SS(e){let t={meta:{}};return e[0]!==void 0&&(t.meta=e[0].meta),e.forEach(n=>{switch(n.type){case ee.LOG:case ee.EVENT:case ee.EXCEPTION:case ee.MEASUREMENT:const r=dS[n.type],i=t[r];t=Object.assign(Object.assign({},t),{[r]:i===void 0?[n.payload]:[...i,n.payload]});break;case ee.TRACE:t=Object.assign(Object.assign({},t),{traces:TS(t.traces,n.payload.resourceSpans)});break}}),t}const jt="user-action-start",ys="user-action-end",bs="user-action-cancel",ad="user-action-halt";function yS({internalLogger:e,config:t,metas:n,transports:r,tracesApi:i,actionBuffer:o,getMessage:a}){let s=null;return{pushEvent:(c,l,d,{skipDedupe:f,spanContext:p,timestampOverwriteMs:_,customPayloadTransformer:h=g=>g}={})=>{try{const g=eo(l),E={meta:n.value,payload:h({name:c,domain:d??t.eventDomain,attributes:rt(g)?void 0:g,timestamp:_?Zi(_):Qi(),trace:p?{trace_id:p.traceId,span_id:p.spanId}:i.getTraceContext()}),type:ee.EVENT},b={name:E.payload.name,attributes:E.payload.attributes,domain:E.payload.domain};if(!f&&t.dedupe&&!Tr(s)&&Tt(b,s)){e.debug(`Skipping event push because it is the same as the last one
31`,E.payload);return}s=b,e.debug(`Pushing event
32`,E);const v=a();v&&v.type===jt?o.addItem(E):r.execute(E)}catch(g){e.error("Error pushing event",g)}}}}const sd="Error",dc=e=>e.map(t=>je(t)?Sr(t):String(t)).join(" ");function bS(e,t){return e.some(n=>yn(n)?t.includes(n):!!t.match(n))}let it;function OS({internalLogger:e,config:t,metas:n,transports:r,tracesApi:i,actionBuffer:o,getMessage:a}){var s;e.debug("Initializing exceptions API");let u=null;it=(s=t.parseStacktrace)!==null&&s!==void 0?s:it;const c=_=>{e.debug("Changing stacktrace parser"),it=_??it},l=()=>it,{ignoreErrors:d=[],preserveOriginalError:f}=t,p=(_,{skipDedupe:h,stackFrames:g,type:E,context:b,spanContext:v,timestampOverwriteMs:T,originalError:O}={})=>
32{if(!AS(d,O??_))try{const m=eo(Object.assign(Object.assign({},RS(O??_)),b??{})),R={meta:n.value,payload:Object.assign(Object.assign({type:E||_.name||sd,value:_.message,timestamp:T?Zi(T):Qi(),trace:v?{trace_id:v.traceId,span_id:v.spanId}:i.getTraceContext()},rt(m)?{}:{context:m}),f?{originalError:O}:{}),type:ee.EXCEPTION};g=g??(_.stack?it?.(_).frames:void 0),g?.length&&(R.payload.stacktrace={frames:g});const U={type:R.payload.type,value:R.payload.value,stackTrace:R.payload.stacktrace,context:R.payload.context};if(!h&&t.dedupe&&!Tr(u)&&Tt(U,u)){e.debug(`Skipping error push because it is the same as the last one
33`,R.payload);return}u=U,e.debug(`Pushing exception
34`,R);const j=a();j&&j.type===jt?o.addItem(R):r.execute(R)}catch(m){e.error("Error pushing event",m)}};return c(t.parseStacktrace),{changeStacktraceParser:c,getStacktraceParser:l,pushError:p}}function RS(e){let t=e.cause;return Ts(t)?t=e.cause.toString():t!==null&&(je(e.cause)||or(e.cause))?t=Sr(e.cause):t!=null&&(t=e.cause.toString()),t==null?{}:{cause:t}}function AS(e,t){const{message:n,name:r,stack:i}=t;return bS(e,n+" "+r+" "+i)}const Oi=e=>e.map(t=>{try{return String(t)}catch{return""}}).join(" ");function wS({internalLogger:e,config:t,metas:n,transports:r,tracesApi:i,actionBuffer:o,getMessage:a}){var s;e.debug("Initializing logs API");let u=null;const c=(s=t.logArgsSerializer)!==null&&s!==void 0?s:Oi;return{pushLog:(d,{context:f,level:p,skipDedupe:_,spanContext:h,timestampOverwriteMs:g}={})=>{try{const E=eo(f),b={type:ee.LOG,payload:{message:c(d),level:p??iS,context:rt(E)?void 0:E,timestamp:g?Zi(g):Qi(),trace:h?{trace_id:h.traceId,span_id:h.spanId}:i.getTraceContext()},meta:n.value},v={message:b.payload.message,level:b.payload.level,context:b.payload.context};if(!_&&t.dedupe&&!Tr(u)&&Tt(v,u)){e.debug(`Skipping log push because it is the same as the last one
35`,b.payload);return}u=v,e.debug(`Pushing log
36`,b);const T=a();T&&T.type===jt?o.addItem(b):r.execute(b)}catch(E){e.error(`Error pushing log
37`,E)}}}}function IS({internalLogger:e,config:t,metas:n,transports:r,tracesApi:i,actionBuffer:o,getMessage:a}){e.debug("Initializing measurements API");let s=null;return{pushMeasurement:(c,{skipDedupe:l,context:d,spanContext:f,timestampOverwriteMs:p}={})=>{try{const _=eo(d),h={type:ee.MEASUREMENT,payload:Object.assign(Object.assign({},c),{trace:f?{trace_id:f.traceId,span_id:f.spanId}:i.getTraceContext(),timestamp:p?Zi(p):Qi(),context:rt(_)?void 0:_}),meta:n.value},g={type:h.payload.type,values:h.payload.values,context:h.payload.context};if(!l&&t.dedupe&&!Tr(s)&&Tt(g,s)){e.debug(`Skipping measurement push because it is the same as the last one
38`,h.payload);return}s=g,e.debug(`Pushing measurement
39`,h);const E=a();E&&E.type===jt?o.addItem(h):r.execute(h)}catch(_){e.error(`Error pushing measurement
40`,_)}}}}function PS({internalLogger:e,metas:t}){e.debug("Initializing meta API");let n,r,i,o;const a=p=>{r&&t.remove(r),r={user:p},t.add(r)},s=(p,_)=>{var h;const g=_?.overrides,E=g?{overrides:Object.assign(Object.assign({},(h=n?.session)===null||h===void 0?void 0:h.overrides),g)}:{};n&&t.remove(n),n={session:Object.assign(Object.assign({},rt(p)?void 0:p),E)},t.add(n)},u=()=>t.value.session,c=(p,_)=>{var h;if(_?.overrides&&s(u(),{overrides:_.overrides}),((h=i?.view)===null||h===void 0?void 0:h.name)===p?.name)return;const g=i;i={view:p},t.add(i),g&&t.remove(g)},l=()=>t.value.view,d=p=>{var _;const h=yn(p)?Object.assign(Object.assign({},(_=o?.page)!==null&&_!==void 0?_:f()),{id:p}):p;o&&t.remove(o),o={page:h},t.add(o)},f=()=>t.value.page;return{setUser:a,resetUser:a,setSession:s,resetSession:s,getSession:u,setView:c,getView:l,setPage:d,getPage:f}}function LS(e,t,n,r,i){t.debug("Initializing traces API");let o;return{getOTEL:()=>o,getTraceContext:()=>{const d=o?.trace.getSpanContext(o.context.active());return d?{trace_id:d.traceId,span_id:d.spanId}:void 0},initOTEL:(d,f)=>{t.debug("Initializing OpenTelemetry"),o={trace:d,context:f}},isOTELInitialized:()=>!!o,pushTraces:d=>{try{const f={type:ee.TRACE,payload:d,meta:r.value};t.debug(`Pushing trace
41`,f),i.execute(f)}catch(f){t.error(`Error pushing trace
42`,f)}}}}class NS{constructor(){this.buffer=[]}addItem(t){this.buffer.push(t)}flushBuffer(t){if(bn(t))for(const n of this.buffer)t(n);this.buffer.length=0}size(){return this.buffer.length}}function CS({apiMessageBus:e,transports:t,config:n}){const r=new NS,i=n.trackUserActionsExcludeItem;let o;return e.subscribe(s=>{if(jt===s.type||ad===s.type){o=s;return}if(s.type===ys){const{id:u,name:c}=s;r.flushBuffer(l=>{if(MS(l,i)){t.execute(l);return}const d=Object.assign(Object.assign({},l),{payload:Object.assign(Object.assign({},l.payload),{action:{parentId:u,name:c}})});t.execute(d)}),o=void 0;return}s.type===bs&&(o=void 0,r.flushBuffer(u=>{t.execute(u)}))}),{actionBuffer:r,getMessage:()=>
vendor: 8,907 bytes, lines 42-46
42o}}function MS(e,t){return t?.(e)||e.type===ee.MEASUREMENT&&e.payload.type==="web-vitals"}const dn=new Ce;function xS(e,t,n,r,i){t.debug("Initializing API");const{actionBuffer:o,getMessage:a}=CS({apiMessageBus:dn,transports:i,config:n}),s=LS(e,t,n,r,i),u={unpatchedConsole:e,internalLogger:t,config:n,metas:r,transports:i,tracesApi:s,actionBuffer:o,getMessage:a};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s),OS(u)),PS(u)),wS(u)),IS(u)),yS(u))}class Rt extends od{constructor(){super(...arguments),this.api={},this.transports={}}}function DS(e,t,n,r,i,o){t.debug("Initializing instrumentations");const a=[];return{add:(...c)=>{t.debug("Adding instrumentations"),c.forEach(l=>{if(t.debug(`Adding "${l.name}" instrumentation`),a.some(f=>f.name===l.name)){t.warn(`Instrumentation ${l.name} is already added`);return}l.unpatchedConsole=e,l.internalLogger=t,l.config=n,l.metas=r,l.transports=i,l.api=o,a.push(l),l.initialize()})},get instrumentations(){return[...a]},remove:(...c)=>{t.debug("Removing instrumentations"),c.forEach(l=>{var d,f;t.debug(`Removing "${l.name}" instrumentation`);const p=a.reduce((_,h,g)=>_===null&&h.name===l.name?g:null,null);if(p===null){t.warn(`Instrumentation "${l.name}" is not added`);return}(f=(d=a[p]).destroy)===null||f===void 0||f.call(d),a.splice(p,1)})}}}function kS(e){e.instrumentations.add(...e.config.instrumentations)}function US(e,t,n){let r=[],i=[];const o=()=>r.reduce((d,f)=>Object.assign(d,bn(f)?f():f),{}),a=()=>{if(i.length){const d=o();i.forEach(f=>f(d))}};return{add:(...d)=>{t.debug(`Adding metas
43`,d),r.push(...d),a()},remove:(...d)=>{t.debug(`Removing metas
44`,d),r=r.filter(f=>!d.includes(f)),a()},addListener:d=>{t.debug(`Adding metas listener
45`,d),i.push(d)},removeListener:d=>{t.debug(`Removing metas listener
46`,d),i=i.filter(f=>f!==d)},get value(){return o()}}}const He="1.19.0";function $S(e){var t,n;const r={sdk:{version:He},app:{bundleId:e.config.app.name&&sS(e.config.app.name)}},i=(t=e.config.sessionTracking)===null||t===void 0?void 0:t.session;i&&e.api.setSession(i),e.config.app&&(r.app=Object.assign(Object.assign({},e.config.app),r.app)),e.config.user&&(r.user=e.config.user),e.config.view&&(r.view=e.config.view),e.metas.add(r,...(n=e.config.metas)!==null&&n!==void 0?n:[])}const ud="_faroInternal";function BS(e){if(e.config.preventGlobalExposure)e.internalLogger.debug("Skipping registering public Faro instance in the global scope");else{if(e.internalLogger.debug(`Registering public faro reference in the global scope using "${e.config.globalObjectKey}" key`),e.config.globalObjectKey in Ct){e.internalLogger.warn(`Skipping global registration due to key "${e.config.globalObjectKey}" being used already. Please set "globalObjectKey" to something else or set "preventGlobalExposure" to "true"`);return}Object.defineProperty(Ct,e.config.globalObjectKey,{configurable:!1,writable:!1,value:e})}}function jS(e){e.config.isolate?e.internalLogger.debug("Skipping registering internal Faro instance on global object"):(e.internalLogger.debug("Registering internal Faro instance on global object"),Object.defineProperty(Ct,ud,{configurable:!1,enumerable:!1,writable:!1,value:e}))}function FS(){return ud in Ct}let V={};function HS(e,t,n,r,i,o,a){return t.debug("Initializing Faro"),V={api:o,config:n,instrumentations:a,internalLogger:t,metas:r,pause:i.pause,transports:i,unpatchedConsole:e,unpause:i.unpause},jS(V),BS(V),V}function GS(e){const t=gS(e),n=mS(t,e);if(FS()&&!e.isolate){n.error('Faro is already registered. Either add instrumentations, transports etc. to the global faro instance or use the "isolate" property');return}n.debug("Initializing");const r=US(t,n),i=pS(t,n,e,r),o=xS(t,n,e,r,i),a=DS(t,n,e,r,i,o),s=HS(t,n,e,r,i,o,a);return $S(s),ES(s),kS(s),s}const VS="faro",XS={enabled:!0,sendTimeout:250,itemLimit:50},zS="view_changed",Ur="session_start",Mo="session_resume",qS="session_extend",KS="service_name_override",he="unknown";var Oa={exports:{}};(function(e,t){(function(n,r){var i="1.0.41",o="",a="?",s="function",u="undefined",c="object",l="string",d="major",f="model",p="name",_="type",h="vendor",g="version",E="architecture",b="console",v="mobile",T="tablet",O="smarttv",m="wearable",R="embedded",U=500,j="Amazon",ne="Apple",ye="ASUS",X="BlackBerry",se="Browser",pe="Chrome",$="Edge",z="Firefox",M="Google",Y="Honor",Z="Huawei",Me="Lenovo",_e="LG",Ge="Microsoft",Ve="Motorola",zt="Nvidia",Pr="OnePlus",wn="Opera",ho="OPPO",In="Samsung",iu="Sharp",Pn="Sony",go="Xiaomi",mo="Zebra",ou="Facebook",au="Chromium OS",su="Mac OS",uu=" Browser",I_=function(N,x){var I={};for(var F in N)x[F]&&x[F].length%2===0?I[F]=x[F].concat(N[F]):I[F]=N[F];return I},Lr=function(N){for(var x={},I=0;I<N.length;I++)x[N[I].toUpperCase()]=N[I];return x},cu=function(N,x){return typeof N===l?Ln(x).indexOf(Ln(N))!==-1:!1},Ln=function(N){return N.toLowerCase()},P_=function(N){return typeof N===l?N.replace(/[^\d\.]/g,o).split(".")[0]:r},vo=function(N,x){if(typeof N===l)return N=N.replace(/^\s\s*/,o),typeof x===u?N:N.substring(0,U)},Nn=function(N,x){for(var I=0,F,Xe,xe,D,A,De;I<x.length&&!A;){var Eo=x[I],du=x[I+1];for(F=Xe=0;F<Eo.length&&!A&&Eo[F];)if(A=Eo[F++].exec(N),A)for(xe=0;xe<du.length;xe++)De=A[++Xe],D=du[xe],typeof D===c&&D.length>0?D.length===2?typeof D[1]==s?this[D[0]]=D[1].call(this,De):this[D[0]]=D[1]:D.length===3?typeof D[1]===s&&!(D[1].exec&&D[1].test)?this[D[0]]=De?D[1].call(this,De,D[2]):r:this[D[0]]=De?De.replace(D[1],D[2]):r:D.length===4&&(this[D[0]]=De?D[3].call(this,De.replace(D[1],D[2])):r):this[D]=De||r;I+=2}},Cn=function(N,x){for(var I in x)if(typeof x[I]===c&&x[I].length>0){for(var F=0;F<x[I].length;F++)if(cu(x[I][F],N))return I===a?r:I}else if(cu(x[I],N))return I===a?r:I;return x.hasOwnProperty("*")?x["*"]:N},L_={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},lu={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},fu={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,g],[/opios[\/ ]+([\w\.]+)/i],[g,[p,wn+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[p,wn+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[p,wn]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[p,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[g,[p,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,g],[/quark(?:pc)?\/([-\w\.]+)/i],[g,[p,"Quark"]],[/\bddg\/([\w\.]+)/i],[g,[p,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[p,"UC"+se]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[p,"Smart Lenovo "+se]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+se],g],[/\bfocus\/([\w\.]+)/i],[g,[p,z+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[p,wn+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[p,wn+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[p,"MIUI"+uu]],[/fxios\/([\w\.-]+)/i],[g,[p,z]],[/\bqihoobrowser\/?([\w\.]*)/i],[g,[p,"360"]],[/\b(qq)\/([\w\.]+)/i],[[p,/(.+)/,"$1Browser"],g],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1"+uu],g],[/samsungbrowser\/([\w\.]+)/i],[g,[p,In+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[g,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[p,g],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[p],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[g,p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,ou],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[p,"GSA"]],[/musical_ly(?:.
46+app_?version\/|_)([\w\.]+)/i],[g,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[p,pe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,pe+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[p,"Android "+se]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[g,Cn,L_]],[/(webkit|khtml)\/([\w\.]+)/i],[p,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],g],[/(wolvic|librewolf)\/([\w\.]+)/i],[p,g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[p,z+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[p,[g,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[p,[g,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[E,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[E,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[E,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[E,/ower/,o,Ln]],[/ sun4\w[;\)]/i],[[E,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[E,Ln]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[h,In],[_,T]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[f,[h,In],[_,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[h,ne],[_,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[h,ne],[_,T]],[/(macintosh);/i],[f,[h,ne]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[h,iu],[_,v]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[f,[h,Y],[_,T]],[/honor([-\w ]+)[;\)]/i],[f,[h,Y],[_,v]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[f,[h,Z],[_,T]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[h,Z],[_,v]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[f,/_/g," "],[h,go],[_,T]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[f,/_/g," "],[h,go],[_,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[h,ho],[_,v]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[f,[h,Cn,{OnePlus:["304","403","203"],"*":ho}],[_,T]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[h,"Vivo"],[_,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[h,"Realme"],[_,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[h,Ve],[_,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[h,Ve],[_,T]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[h,_e],[_,T]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[h,_e],[_,v]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
46(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[f,[h,Me],[_,T]],[/(nokia) (t[12][01])/i],[h,f,[_,T]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[f,/_/g," "],[_,v],[h,"Nokia"]],[/(pixel (c|tablet))\b/i],[f,[h,M],[_,T]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[h,M],[_,v]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[h,Pn],[_,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[h,Pn],[_,T]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[h,Pr],[_,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[h,j],[_,T]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[h,j],[_,v]],[/(playbook);[-\w\),; ]+(rim)/i],[f,h,[_,T]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[h,X],[_,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[h,ye],[_,T]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[h,ye],[_,v]],[/(nexus 9)/i],[f,[h,"HTC"],[_,T]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[f,/_/g," "],[_,v]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[f,[h,"TCL"],[_,T]],[/(itel) ((\w+))/i],[[h,Ln],f,[_,Cn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[h,"Acer"],[_,T]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[h,"Meizu"],[_,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[h,"Ulefone"],[_,v]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[f,[h,"Energizer"],[_,v]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[f,[h,"Cat"],[_,v]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[f,[h,"Smartfren"],[_,v]],[/droid.+; (a(?:015|06[35]|142p?))/i],[f,[h,"Nothing"],[_,v]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[f,[h,"Archos"],[_,T]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[f,[h,"Archos"],[_,v]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[h,f,[_,T]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[h,f,[_,v]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,f,[_,T]],[/(surface duo)/i],[f,[h,Ge],[_,T]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[h,"Fairphone"],[_,v]],[/(u304aa)/i],[f,[h,"AT&T"],[_,v]],[/\bsie-(\w*)/i],[f,[h,"Siemens"],[_,v]],[/\b(rct\w+) b/i],[f,[h,"RCA"],[_,T]],[/\b(venue[\d ]{2,7}) b/i],[f,[h,"Dell"],[_,T]],[/\b(q(?:mv|ta)\w+) b/i],[f,[h,"Verizon"],[_,T]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[h,"Barnes & Noble"],[_,T]],[/\b(tm\d{3}\w+) b/i],[f,[h,"NuVision"],[_,T]],[/\b(k88) b/i],[f,[h,"ZTE"],[_,T]],[/\b(nx\d{3}j) b/i],[f,[h,"ZTE"],[_,v]],[/\b(gen\d{3}) b.+49h/i],[f,[h,"Swiss"],[_,v]],[/\b(zur\d{3}) b/i],[f,[h,"Swiss"],[_,T]],[/\b((zeki)?tb.*\b) b/i],[f,[h,"Zeki"],[_,T]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],f,[_,T]],[/\b(ns-?\w{0,9}) b/i],[f,[h,"Insignia"],[_,T]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[h,"NextBook"],[_,T]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],f,[_,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],f,[_,v]],[/\b(ph-1) /i],[f,[h,"Essential"],[_,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[h,"Envizen"],[_,T]],[/\b(trio[-\w\. ]+) b/i],[f,[h,"MachSpeed"],[_,T]],[/\btu_(1491) b/i],[f,[h,"Rotor"],[_,T]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[f,[h,zt],[_,T]],[/(sprint) (\w+)/i],[h,f,[_,v]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[h,Ge],[_,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[h,mo],[_,T]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[h,mo],[_,v]],[/smart-tv.+(samsung)/i],[h,[_,O]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[h,In],[_,O]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,_e],[_,O]],[/(apple) ?tv/i],[h,[f,ne+" TV"],[_,O]],[/crkey/i],[[f,pe+"cast"],[h,M],[_,O]],[/droid.+aft(\w+)( bui|\))/i],[f,[h,j],[_,O]],[/(shield \w+ tv)/i],[f,[h,zt],[_,O]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[h,iu],[_,O]],[/(bravia[\w ]+)( bui|\))/i],[f,[h,Pn],[_,O]],[/(mi(tv|box)-?\w+) bui/i],[f,[h,go],[_,O]],[/Hbbtv.*(technisat) (.*);/i],[h,f,[_,O]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,vo],[f,vo],[_,O]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[f,[_,O]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[_,O]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,f,[_,b]],[/droid.+; (shield)( bui|\))/i],[f,[h,zt],[_,b]],[/(playstation \w+)/i],[f,[h,Pn],[_,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[h,Ge],[_,b]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[f,[h,In],[_,m]],[/((pebble))app/i,/(asu
vendor: 5,210 bytes, line 46
46s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[h,f,[_,m]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[f,[h,ho],[_,m]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[h,ne],[_,m]],[/(opwwe\d{3})/i],[f,[h,Pr],[_,m]],[/(moto 360)/i],[f,[h,Ve],[_,m]],[/(smartwatch 3)/i],[f,[h,Pn],[_,m]],[/(g watch r)/i],[f,[h,_e],[_,m]],[/droid.+; (wt63?0{2,3})\)/i],[f,[h,mo],[_,m]],[/droid.+; (glass) \d/i],[f,[h,M],[_,m]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,f,[_,m]],[/; (quest( \d| pro)?)/i],[f,[h,ou],[_,m]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[_,R]],[/(aeobc)\b/i],[f,[h,j],[_,R]],[/(homepod).+mac os/i],[f,[h,ne],[_,R]],[/windows iot/i],[[_,R]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[_,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[_,T]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[_,T]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[_,v]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[f,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[p,$+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[p,g],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,g],[/ladybird\//i],[[p,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,g],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[p,[g,Cn,lu]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,Cn,lu],[p,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,su],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,p],[/(ubuntu) ([\w\.]+) like android/i],[[p,/(.+)/,"$1 Touch"],g],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[p,g],[/\(bb(10);/i],[g,[p,X]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[g,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[p,z+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[p,pe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,au],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,g],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,g]]},Pe=function(N,x){if(typeof N===c&&(x=N,N=r),!(this instanceof Pe))return new Pe(N,x).getResult();var I=typeof n!==u&&n.navigator?n.navigator:r,F=N||(I&&I.userAgent?I.userAgent:o),Xe=I&&I.userAgentData?I.userAgentData:r,xe=x?I_(fu,x):fu,D=I&&I.userAgent==F;return this.getBrowser=function(){var A={};return A[p]=r,A[g]=r,Nn.call(A,F,xe.browser),A[d]=P_(A[g]),D&&I&&I.brave&&typeof I.brave.isBrave==s&&(A[p]="Brave"),A},this.getCPU=function(){var A={};return A[E]=r,Nn.call(A,F,xe.cpu),A},this.getDevice=function(){var A={};return A[h]=r,A[f]=r,A[_]=r,Nn.call(A,F,xe.device),D&&!A[_]&&Xe&&Xe.mobile&&(A[_]=v),D&&A[f]=="Macintosh"&&I&&typeof I.standalone!==u&&I.maxTouchPoints&&I.maxTouchPoints>2&&(A[f]="iPad",A[_]=T),A},this.getEngine=function(){var A={};return A[p]=r,A[g]=r,Nn.call(A,F,xe.engine),A},this.getOS=function(){var A={};return A[p]=r,A[g]=r,Nn.call(A,F,xe.os),D&&!A[p]&&Xe&&Xe.platform&&Xe.platform!="Unknown"&&(A[p]=Xe.platform.replace(/chrome os/i,au).replace(/macos/i,su)),A},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return F},this.setUA=function(A){return F=typeof A===l&&A.length>U?vo(A,U):A,this},this.setUA(F),this};Pe.VERSION=i,Pe.BROWSER=Lr([p,g,d]),Pe.CPU=Lr([E]),Pe.DEVICE=Lr([f,h,_,b,v,O,T,m,R]),Pe.ENGINE=Pe.OS=Lr([p,g]),e.exports&&(t=e.exports=Pe),t.UAParser=Pe;var qt=typeof n!==u&&(n.jQuery||n.Zepto);if(qt&&!qt.ua){var Nr=new Pe;qt.ua=Nr.getResult(),qt.ua.get=function(){return Nr.getUA()},qt.ua.set=function(N){Nr.setUA(N);var x=Nr.getResult();for(var I in x)qt.ua[I]=x[I]}}})(typeof window=="object"?window:Ah)}
46)(Oa,Oa.exports);var WS=Oa.exports;const YS=()=>{const e=new WS.UAParser,{name:t,version:n}=e.getBrowser(),{name:r,version:i}=e.getOS(),o=e.getUA(),a=navigator.language,s=navigator.userAgent.includes("Mobi"),u=c();return{browser:{name:t??he,version:n??he,os:`${r??he} ${i??he}`,userAgent:o??he,language:a??he,mobile:s,brands:u??he,viewportWidth:`${window.innerWidth}`,viewportHeight:`${window.innerHeight}`}};function c(){if(!(!t||!n)&&"userAgentData"in navigator&&navigator.userAgentData)return navigator.userAgentData.brands}};function JS(e){var t,n,r,i;return{id:(i=(r=(n=(t=V.config)===null||t===void 0?void 0:t.sessionTracking)===null||n===void 0?void 0:n.generateSessionId)===null||r===void 0?void 0:r.call(n))!==null&&i!==void 0?i:Bt(),attributes:e}}const nt={session:"sessionStorage",local:"localStorage"};function cd(e){var t;try{let n;n=window[e];const r="__faro_storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(n){return(t=V.internalLogger)===null||t===void 0||t.info(`Web storage of type ${e} is not available. Reason: ${n}`),!1}}function no(e,t){return Rs(t)?window[t].getItem(e):null}function Os(e,t,n){if(Rs(n))try{window[n].setItem(e,t)}catch{}}function ld(e,t){Rs(t)&&window[t].removeItem(e)}const fd=cd(nt.local),dd=cd(nt.session);function Rs(e){return e===nt.local?fd:e===nt.session?dd:!1}function pd(e,t){let n=!1,r;const i=()=>{if(r==null){n=!1;return}e(...r),r=null,setTimeout(i,t)};return(...o)=>{if(n){r=o;return}e(...o),n=!0,setTimeout(i,t)}}function QS(){return V.transports.transports.flatMap(e=>e.getIgnoreUrls())}function ro(e=""){return QS().some(t=>e&&e.match(t)!=null)}function ZS(e){if(yn(e))return e;if(e instanceof URL)return e.href;if(!rt(e)&&bn(e?.toString))return e.toString()}const nn="com.grafana.faro.session",ey=14400*1e3,_d=900*1e3,hd=1*1e3,ty=_d,ny={enabled:!0,persistent:!1,maxSessionPersistenceTime:ty};function As(){var e,t,n;const i=V.config.sessionTracking;let o=(n=(t=(e=i?.sampler)===null||e===void 0?void 0:e.call(i,{metas:V.metas.value}))!==null&&t!==void 0?t:i?.samplingRate)!==null&&n!==void 0?n:1;return typeof o!="number"&&(o=0),Math.random()<o}function Ri({sessionId:e,started:t,lastActivity:n,isSampled:r=!0}={}){var i,o;const a=ft(),s=(o=(i=V.config)===null||i===void 0?void 0:i.sessionTracking)===null||o===void 0?void 0:o.generateSessionId;return e==null&&(e=typeof s=="function"?s():Bt()),{sessionId:e,lastActivity:n??a,started:t??a,isSampled:r}}function gd(e){if(e==null)return!1;const t=ft();return t-e.started<ey?t-e.lastActivity<_d:!1}function ws({fetchUserSession:e,storeUserSession:t}){return function({forceSessionExtend:r}={forceSessionExtend:!1}){var i,o,a;if(!e||!t)return;const s=V.config.sessionTracking,u=s?.persistent;if(u&&!fd||!u&&!dd)return;const c=e();if(r===!1&&gd(c))t(Object.assign(Object.assign({},c),{lastActivity:ft()}));else{let l=md(Ri({isSampled:As()}),c);t(l),(i=V.api)===null||i===void 0||i.setSession(l.sessionMeta),(o=s?.onSessionChange)===null||o===void 0||o.call(s,(a=c?.sessionMeta)!==null&&a!==void 0?a:null,l.sessionMeta)}}}function md(e,t){var n,r,i,o,a,s,u;const c=Object.assign(Object.assign({},e),{sessionMeta:{id:e.sessionId,attributes:Object.assign(Object.assign(Object.assign({},(r=(n=V.config.sessionTracking)===null||n===void 0?void 0:n.session)===null||r===void 0?void 0:r.attributes),(o=(i=V.metas.value.session)===null||i===void 0?void 0:i.attributes)!==null&&o!==void 0?o:{}),{isSampled:e.isSampled.toString()})}}),l=(s=(a=V.metas.value.session)===null||a===void 0?void 0:a.overrides)!==null&&s!==void 0?s:(u=t?.sessionMeta)===null||u===void 0?void 0:u.overrides;rt(l)||(c.sessionMeta.overrides=l);const d=t?.sessionId;return d!=null&&(c.sessionMeta.attributes.previousSession=d),c}function vd({fetchUserSession:e,storeUserSession:t}){return function(r){const i=r.session,o=e();let a=i?.id;const s=i?.attributes,u=i?.overrides,c=o?.sessionMeta,l=c?.overrides,d=!!u&&!Tt(u,l),f=!!s&&!Tt(s,c?.attributes);if(!!i&&a!==o?.sessionId||f||d){const _=md(Ri({sessionId:a,isSampled:As()}),o);t(_),ry(d,u,l),V.api.setSession(_.sessionMeta)}}}function ry(e,t={},n={}){var r,i,o;if(!e)return;const a=t.serviceName,s=(o=(r=n.serviceName)!==null&&r!==void 0?r:(i=V.metas.value.app)===null||i===void 0?void 0:i.name)!==null&&o!==void 0?o:"";a&&a!==s&&V.api.pushEvent(KS,{serviceName:a,previousServiceName:s})}class Le{constructor(){this.updateSession=pd(()=>this.updateUserSession(),hd),this.updateUserSession=ws({fetchUserSession:Le.fetchUserSession,storeUserSession:Le.storeUserSession}),this.init()}static removeUserSession(){ld(nn,Le.storageTypeLocal)}static storeUserSession(t){Os(nn,Sr(t),Le.storageTypeLocal)}static fetchUserSession(){const t=no(nn,Le.storageTypeLocal);return t?JSON.parse(t):null}init(){document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&this.updateSession()}),V.metas.addListener(vd({fetchUserSession:Le.fetchUserSession,storeUserSession:Le.storeUserSession}))}}Le.storageTypeLocal=nt.local;
46class Ue{constructor(){this.updateSession=pd(()=>this.updateUserSession(),hd),this.updateUserSession=ws({fetchUserSession:Ue.fetchUserSession,storeUserSession:Ue.storeUserSession}),this.init()}static removeUserSession(){ld(nn,Ue.storageTypeSession)}static storeUserSession(t){Os(nn,Sr(t),Ue.storageTypeSession)}static fetchUserSession(){const t=no(nn,Ue.storageTypeSession);return t?JSON.parse(t):null}init(){document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&this.updateSession()}),V.metas.addListener(vd({fetchUserSession:Ue.fetchUserSession,storeUserSession:Ue.storeUserSession}))}}Ue.storageTypeSession=nt.session;function Ed(e){return e?.persistent?Le:Ue}class iy extends Rt{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-session",this.version=He}sendSessionStartEvent(t){var n,r;const i=t.session;if(i&&i.id!==((n=this.notifiedSession)===null||n===void 0?void 0:n.id)){if(this.notifiedSession&&this.notifiedSession.id===((r=i.attributes)===null||r===void 0?void 0:r.previousSession)){this.api.pushEvent(qS,{},void 0,{skipDedupe:!0}),this.notifiedSession=i;return}this.notifiedSession=i,this.api.pushEvent(Ur,{},void 0,{skipDedupe:!0})}}createInitialSession(t,n){var r,i,o,a,s,u;let c=t.fetchUserSession();if(n.persistent&&n.maxSessionPersistenceTime&&c){const f=ft();c.lastActivity<f-n.maxSessionPersistenceTime&&(Le.removeUserSession(),c=null)}let l,d;if(gd(c)){const f=c?.sessionId;d=Ri({sessionId:f,isSampled:c.isSampled||!1,started:c?.started});const p=c?.sessionMeta,_=Object.assign(Object.assign({},(r=n.session)===null||r===void 0?void 0:r.overrides),p?.overrides);d.sessionMeta=Object.assign(Object.assign({},n.session),{id:f,attributes:Object.assign(Object.assign(Object.assign({},(i=n.session)===null||i===void 0?void 0:i.attributes),p?.attributes),{isSampled:d.isSampled.toString()}),overrides:_}),l=Mo}else{const f=(a=(o=n.session)===null||o===void 0?void 0:o.id)!==null&&a!==void 0?a:JS().id;d=Ri({sessionId:f,isSampled:As()});const p=(s=n.session)===null||s===void 0?void 0:s.overrides;d.sessionMeta=Object.assign({id:f,attributes:Object.assign({isSampled:d.isSampled.toString()},(u=n.session)===null||u===void 0?void 0:u.attributes)},p?{overrides:p}:{}),l=Ur}return{initialSession:d,lifecycleType:l}}registerBeforeSendHook(t){var n;const{updateSession:r}=new t;(n=this.transports)===null||n===void 0||n.addBeforeSendHooks(i=>{var o,a,s;r();const u=(o=i.meta.session)===null||o===void 0?void 0:o.attributes;if(u&&u?.isSampled==="true"){let c=JSON.parse(JSON.stringify(i));const l=(a=c.meta.session)===null||a===void 0?void 0:a.attributes;return l==null||delete l.isSampled,Object.keys(l??{}).length===0&&((s=c.meta.session)===null||s===void 0||delete s.attributes),c}return null})}initialize(){this.logDebug("init session instrumentation");const t=this.config.sessionTracking;if(t?.enabled){const n=Ed(t);this.registerBeforeSendHook(n);const{initialSession:r,lifecycleType:i}=this.createInitialSession(n,t);n.storeUserSession(r);const o=r.sessionMeta;this.notifiedSession=o,this.api.setSession(o),i===Ur&&this.api.pushEvent(Ur,{},void 0,{skipDedupe:!0}),i===Mo&&this.api.pushEvent(Mo,{},void 0,{skipDedupe:!0})}this.metas.addListener(this.sendSessionStartEvent.bind(this))}}const oy="Non-Error promise rejection captured with value:",ay="UnhandledRejection",sy="DOMError",uy="DOMException",cy="Non-Error exception captured with keys:",ly="?",fy=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;function dy(e){var t,n;const r=e.match(fy),i=(t=r?.[1])!==null&&t!==void 0?t:sd;return[(n=r?.[2])!==null&&n!==void 0?n:e,i]}const pc=`
47`,py="eval",_y="?",_c="@",hy=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gy=/\((\S*)(?::(\d+))(?::(\d+))\)/,my="eval",Td="address at ",vy=Td.length,Ey=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ty=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Sy=" > eval",hc="safari-extension",gc="safari-web-extension",yy=/Minified React error #\d+;/i;function Sd(e,t,n,r){const i={filename:e||document.location.href,function:t||_y};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}function mc(e,t){const n=e?.includes(hc),r=!n&&e?.includes(gc);return!n&&!r?[e,t]:[e?.includes(_c)?e.split(_c)[0]:e,n?`${hc}:${t}`:`${gc}:${t}`]}function Ra(e){let t=[];e.stacktrace?t=e.stacktrace.split(pc).filter((r,i)=>i%2===0):e.stack&&(t=e.stack.split(pc));const n=t.reduce((r,i,o)=>{let a,s,u,c,l;if(a=hy.exec(i)){if(s=a[1],u=a[2],c=a[3],l=a[4],u?.startsWith(my
47)){const d=gy.exec(u);d&&(u=d[1],c=d[2],l=d[3])}u=u?.startsWith(Td)?u.substring(vy):u,[s,u]=mc(s,u)}else if(a=Ey.exec(i)){if(s=a[1],u=a[3],c=a[4],l=a[5],u&&u.includes(Sy)){const d=Ty.exec(u);d&&(s=s||py,u=d[1],c=d[2])}else o===0&&!l&&WT(e.columnNumber)&&(l=String(e.columnNumber+1));[s,u]=mc(s,u)}return(u||s)&&r.push(Sd(u,s,c?Number(c):void 0,l?Number(l):void 0)),r},[]);return yy.test(e.message)?n.slice(1):n}function by(e){return{frames:Ra(e)}}function yd(e){let t,n,r=[],i,o;if(tS(e)&&e.error)t=e.error.message,n=e.error.name,r=Ra(e.error);else if((i=nS(e))||rS(e)){const{name:a,message:s}=e;n=a??(i?sy:uy),t=s?`${n}: ${s}`:n}else Ts(e)?(t=e.message,r=Ra(e)):(je(e)||(o=ZT(e)))&&(n=o?e.constructor.name:void 0,t=`${cy} ${Object.keys(e)}`);return[t,n,r]}function bd(e){const[t,n,r,i,o]=e;let a,s,u=[];const c=yn(t),l=Sd(n,ly,r,i);return o||!c?([a,s,u]=yd(o??t),u.length===0&&(u=[l])):c&&([a,s]=dy(t),u=[l]),{value:a,type:s,stackFrames:u}}function vc(e,t){return Ts(e[0])?bd(e):{value:t(e)}}class dt extends Rt{constructor(t={}){super(),this.options=t,this.name="@grafana/faro-web-sdk:instrumentation-console",this.version=He,this.errorSerializer=Oi}initialize(){var t,n,r,i;this.options=Object.assign(Object.assign({},this.options),this.config.consoleInstrumentation);const o=((t=this.options)===null||t===void 0?void 0:t.serializeErrors)||!!(!((n=this.options)===null||n===void 0)&&n.errorSerializer);this.errorSerializer=o?(i=(r=this.options)===null||r===void 0?void 0:r.errorSerializer)!==null&&i!==void 0?i:dc:Oi,oS.filter(a=>{var s,u;return!((u=(s=this.options)===null||s===void 0?void 0:s.disabledLevels)!==null&&u!==void 0?u:dt.defaultDisabledLevels).includes(a)}).forEach(a=>{console[a]=(...s)=>{var u,c;try{if(a===ce.ERROR&&!(!((u=this.options)===null||u===void 0)&&u.consoleErrorAsLog)){const{value:l,type:d,stackFrames:f}=vc(s,this.errorSerializer);if(l&&!d&&!f){this.api.pushError(new Error(dt.consoleErrorPrefix+l));return}this.api.pushError(new Error(dt.consoleErrorPrefix+l),{type:d,stackFrames:f})}else if(a===ce.ERROR&&(!((c=this.options)===null||c===void 0)&&c.consoleErrorAsLog)){const{value:l,type:d,stackFrames:f}=vc(s,this.errorSerializer);this.api.pushLog(l?[dt.consoleErrorPrefix+l]:s,{level:a,context:{value:l??"",type:d??"",stackFrames:f?.length?dc(f):""}})}else this.api.pushLog(s,{level:a})}catch(l){this.logError(l)}finally{this.unpatchedConsole[a](...s)}}})}}dt.defaultDisabledLevels=[ce.DEBUG,ce.TRACE,ce.LOG];dt.consoleErrorPrefix="console.error: ";function Oy(e){const t=window.onerror;window.onerror=(...n)=>{try{const{value:r,type:i,stackFrames:o}=bd(n);r&&e.pushError(new Error(r),{type:i,stackFrames:o})}finally{t?.apply(window,n)}}}function Ry(e){window.addEventListener("unhandledrejection",t=>{var n,r;let i=t;i.reason?i=t.reason:!((n=t.detail)===null||n===void 0)&&n.reason&&(i=(r=t.detail)===null||r===void 0?void 0:r.reason);let o,a,s=[];JT(i)?(o=`${oy} ${String(i)}`,a=ay):[o,a,s]=yd(i),o&&e.pushError(new Error(o),{type:a,stackFrames:s})})}class Ay extends Rt{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-errors",this.version=He}initialize(){this.logDebug("Initializing"),Oy(this.api),Ry(this.api)}}class wy extends Rt{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-view",this.version=He}sendViewChangedEvent(t){var n,r,i,o;const a=t.view;a&&a.name!==((n=this.notifiedView)===null||n===void 0?void 0:n.name)&&(this.api.pushEvent(zS,{fromView:(i=(r=this.notifiedView)===null||r===void 0?void 0:r.name)!==null&&i!==void 0?i:he,toView:(o=a.name)!==null&&o!==void 0?o:he},void 0,{skipDedupe:!0}),this.notifiedView=a)}initialize(){this.metas.addListener(this.sendViewChangedEvent.bind(this))}}var Aa,ut,Wn,Od,Ai,Rd=-1,Ft=function(e){addEventListener("pageshow",(function(t){t.persisted&&(Rd=t.timeStamp,e(t))}),!0)},Is=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},io=function(){var e=Is();return e&&e.activationStart||0},Re=function(e,t){var n=Is(),r="navigate";return Rd>=0?r="back-forward-cache":n&&(document.prerendering||io()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},On=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(i){Promise.resolve().then((function(){t(i.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Ae=function(e,t,n,r){var i,o;return function(a){t.value>=0&&(a||r)&&((o=t.value-(i||0))||i===void 0)&&(i=t.value,t.delta=o,t.rating=(function(s,u){return s>u[1]?"poor":s>u[0]?"needs-improvement":"good"})(t.value,n),e(t))}},Ps=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},yr=function(e){document.addEventListener("visibilitychange",(function(){document.visibilityState==="hidden"&&e()}))},oo=function(e){var t=!1;return function(){t||(e(),t=!0)}},en=-1,Ec=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},wi=function(e){document.visibilityState==="hidden"&&en>-1&&(en=e.type==="visibilitychange"?e.timeStamp:0,Iy())},Tc=function(){addEventListener("visibilitychange",wi,!0),addEventListener("prerenderingchange",wi,!0)},Iy=function(){removeEventListener("visibilitychange",wi,!0),removeEventListener("prerenderingchange",wi,!0)},Ls=function(){return en<0&&(en=Ec(),Tc(),Ft((function(){setTimeout((function(){en=Ec(),Tc()}),0)}))),{get firstHiddenTime(){return en}}},br=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Sc=[1800,3e3],Ad=function(e,t){t=t||{},br((function(){var n,r=Ls(),i=Re("FCP"),o=On("paint",(function(a){a.forEach((function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<r.firstHiddenTime&&(i.value=Math.max(s.startTime-io(),0),i.entries.push(s),n(!0)))}))}));o&&(n=Ae(e,i,Sc,t.reportAllChanges),Ft((function(a){i=Re("FCP"),n=Ae(e,i,Sc,t.reportAllChanges),Ps((function(){i.value=performance.now()-a.timeStamp,n(!0)}))})))}))},yc=[.1,.25],Py=function(e,t){t=t||{},Ad(oo((function(){var n,r=Re("CLS",0),i=0,o=[],a=function(u){u.forEach((function(c){if(!c.hadRecentInput){var l=o[0],d=o[o.length-1];i&&c.startTime-d.startTime<1e3&&c.startTime-l.startTime<5e3?(i+=c.value,o.push(c)):(i=c.value,o=[c])}})),i>r.value&&(r.value=i,r.entries=o,n())},s=On("layout-shift",a);s&&(n=Ae(e,r,yc,t.reportAllChanges),yr((function(){a(s.takeRecords()),n(!0)})),Ft((function(){i=0,r=Re("CLS",0),n=Ae(e,r,yc,t.reportAllChanges),Ps((function(){return n()}))})),setTimeout(n,0))}
47)))},wd=0,xo=1/0,$r=0,Ly=function(e){e.forEach((function(t){t.interactionId&&(xo=Math.min(xo,t.interactionId),$r=Math.max($r,t.interactionId),wd=$r?($r-xo)/7+1:0)}))},Id=function(){return Aa?wd:performance.interactionCount||0},Ny=function(){"interactionCount"in performance||Aa||(Aa=On("event",Ly,{type:"event",buffered:!0,durationThreshold:0}))},$e=[],ri=new Map,Pd=0,Cy=function(){var e=Math.min($e.length-1,Math.floor((Id()-Pd)/50));return $e[e]},My=[],xy=function(e){if(My.forEach((function(i){return i(e)})),e.interactionId||e.entryType==="first-input"){var t=$e[$e.length-1],n=ri.get(e.interactionId);if(n||$e.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};ri.set(r.id,r),$e.push(r)}$e.sort((function(i,o){return o.latency-i.latency})),$e.length>10&&$e.splice(10).forEach((function(i){return ri.delete(i.id)}))}}},Ld=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=oo(e),document.visibilityState==="hidden"?e():(n=t(e),yr(e)),n},bc=[200,500],Dy=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},br((function(){var n;Ny();var r,i=Re("INP"),o=function(s){Ld((function(){s.forEach(xy);var u=Cy();u&&u.latency!==i.value&&(i.value=u.latency,i.entries=u.entries,r())}))},a=On("event",o,{durationThreshold:(n=t.durationThreshold)!==null&&n!==void 0?n:40});r=Ae(e,i,bc,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),yr((function(){o(a.takeRecords()),r(!0)})),Ft((function(){Pd=Id(),$e.length=0,ri.clear(),i=Re("INP"),r=Ae(e,i,bc,t.reportAllChanges)})))})))},Oc=[2500,4e3],Do={},ky=function(e,t){t=t||{},br((function(){var n,r=Ls(),i=Re("LCP"),o=function(u){t.reportAllChanges||(u=u.slice(-1)),u.forEach((function(c){c.startTime<r.firstHiddenTime&&(i.value=Math.max(c.startTime-io(),0),i.entries=[c],n())}))},a=On("largest-contentful-paint",o);if(a){n=Ae(e,i,Oc,t.reportAllChanges);var s=oo((function(){Do[i.id]||(o(a.takeRecords()),a.disconnect(),Do[i.id]=!0,n(!0))}));["keydown","click"].forEach((function(u){addEventListener(u,(function(){return Ld(s)}),{once:!0,capture:!0})})),yr(s),Ft((function(u){i=Re("LCP"),n=Ae(e,i,Oc,t.reportAllChanges),Ps((function(){i.value=performance.now()-u.timeStamp,Do[i.id]=!0,n(!0)}))}))}}))},Rc=[800,1800],Uy=function e(t){document.prerendering?br((function(){return e(t)})):document.readyState!=="complete"?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},$y=function(e,t){t=t||{};var n=Re("TTFB"),r=Ae(e,n,Rc,t.reportAllChanges);Uy((function(){var i=Is();i&&(n.value=Math.max(i.responseStart-io(),0),n.entries=[i],r(!0),Ft((function(){n=Re("TTFB",0),(r=Ae(e,n,Rc,t.reportAllChanges))(!0)})))}))},Gn={passive:!0,capture:!0},By=new Date,Ac=function(e,t){ut||(ut=t,Wn=e,Od=new Date,Cd(removeEventListener),Nd())},Nd=function(){if(Wn>=0&&Wn<Od-By){var e={entryType:"first-input",name:ut.type,target:ut.target,cancelable:ut.cancelable,startTime:ut.timeStamp,processingStart:ut.timeStamp+Wn};Ai.forEach((function(t){t(e)})),Ai=[]}},jy=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;e.type=="pointerdown"?(function(n,r){var i=function(){Ac(n,r),a()},o=function(){a()},a=function(){removeEventListener("pointerup",i,Gn),removeEventListener("pointercancel",o,Gn)};addEventListener("pointerup",i,Gn),addEventListener("pointercancel",o,Gn)})(t,e):Ac(t,e)}},Cd=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,jy,Gn)}))},wc=[100,300],Fy=function(e,t){t=t||{},br((function(){var n,r=Ls(),i=Re("FID"),o=function(u){u.startTime<r.firstHiddenTime&&(i.value=u.processingStart-u.startTime,i.entries.push(u),n(!0))},a=function(u){u.forEach(o)},s=On("first-input",a);n=Ae(e,i,wc,t.reportAllChanges),s&&(yr(oo((function(){a(s.takeRecords()),s.disconnect()}))),Ft((function(){var u;i=Re("FID"),n=Ae(e,i,wc,t.reportAllChanges),Ai=[],Wn=-1,ut=null,Cd(addEventListener),u=o,Ai.push(u),Nd()})))}))};class ao{constructor(t,n){this.pushMeasurement=t,this.webVitalConfig=n}initialize(){Object.entries(ao.mapping).forEach(([t,n])=>{var r;n(i=>{this.pushMeasurement({type:"web-vitals",values:{[t]:i.value}})},{reportAllChanges:(r=this.webVitalConfig)===null||r===void 0?void 0:r.reportAllChanges})})}}ao.mapping={cls:Py,fcp:Ad,fid:Fy,inp:Dy,lcp:ky,ttfb:$y};var wa,Ic,Rn=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},ar=function(e){if(document.readyState==="loading")return"loading";var t=Rn();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},Hy=function(e){var t=e.nodeName;
vendor: 10,682 bytes, line 47
47return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},so=function(e,t){var n="";try{for(;e&&e.nodeType!==9;){var r=e,i=r.id?"#"+r.id:Hy(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode}}catch{}return n},Md=-1,xd=function(){return Md},Ht=function(e){addEventListener("pageshow",(function(t){t.persisted&&(Md=t.timeStamp,e(t))}),!0)},uo=function(){var e=Rn();return e&&e.activationStart||0},we=function(e,t){var n=Rn(),r="navigate";return xd()>=0?r="back-forward-cache":n&&(document.prerendering||uo()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},Gt=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(i){Promise.resolve().then((function(){t(i.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Ie=function(e,t,n,r){var i,o;return function(a){t.value>=0&&(a||r)&&((o=t.value-(i||0))||i===void 0)&&(i=t.value,t.delta=o,t.rating=(function(s,u){return s>u[1]?"poor":s>u[0]?"needs-improvement":"good"})(t.value,n),e(t))}},Ns=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Or=function(e){document.addEventListener("visibilitychange",(function(){document.visibilityState==="hidden"&&e()}))},co=function(e){var t=!1;return function(){t||(e(),t=!0)}},tn=-1,Pc=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Ii=function(e){document.visibilityState==="hidden"&&tn>-1&&(tn=e.type==="visibilitychange"?e.timeStamp:0,Gy())},Lc=function(){addEventListener("visibilitychange",Ii,!0),addEventListener("prerenderingchange",Ii,!0)},Gy=function(){removeEventListener("visibilitychange",Ii,!0),removeEventListener("prerenderingchange",Ii,!0)},Cs=function(){return tn<0&&(tn=Pc(),Lc(),Ht((function(){setTimeout((function(){tn=Pc(),Lc()}),0)}))),{get firstHiddenTime(){return tn}}},Rr=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Nc=[1800,3e3],Dd=function(e,t){t=t||{},Rr((function(){var n,r=Cs(),i=we("FCP"),o=Gt("paint",(function(a){a.forEach((function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<r.firstHiddenTime&&(i.value=Math.max(s.startTime-uo(),0),i.entries.push(s),n(!0)))}))}));o&&(n=Ie(e,i,Nc,t.reportAllChanges),Ht((function(a){i=we("FCP"),n=Ie(e,i,Nc,t.reportAllChanges),Ns((function(){i.value=performance.now()-a.timeStamp,n(!0)}))})))}))},Cc=[.1,.25],Vy=function(e,t){(function(n,r){r=r||{},Dd(co((function(){var i,o=we("CLS",0),a=0,s=[],u=function(l){l.forEach((function(d){if(!d.hadRecentInput){var f=s[0],p=s[s.length-1];a&&d.startTime-p.startTime<1e3&&d.startTime-f.startTime<5e3?(a+=d.value,s.push(d)):(a=d.value,s=[d])}})),a>o.value&&(o.value=a,o.entries=s,i())},c=Gt("layout-shift",u);c&&(i=Ie(n,o,Cc,r.reportAllChanges),Or((function(){u(c.takeRecords()),i(!0)})),Ht((function(){a=0,o=we("CLS",0),i=Ie(n,o,Cc,r.reportAllChanges),Ns((function(){return i()}))})),setTimeout(i,0))})))})((function(n){var r=(function(i){var o,a={};if(i.entries.length){var s=i.entries.reduce((function(c,l){return c&&c.value>l.value?c:l}));if(s&&s.sources&&s.sources.length){var u=(o=s.sources).find((function(c){return c.node&&c.node.nodeType===1}))||o[0];u&&(a={largestShiftTarget:so(u.node),largestShiftTime:s.startTime,largestShiftValue:s.value,largestShiftSource:u,largestShiftEntry:s,loadState:ar(s.startTime)})}}return Object.assign(i,{attribution:a})})(n);e(r)}),t)},Xy=function(e,t){Dd((function(n){var r=(function(i){var o={timeToFirstByte:0,firstByteToFCP:i.value,loadState:ar(xd())};if(i.entries.length){var a=Rn(),s=i.entries[i.entries.length-1];if(a){var u=a.activationStart||0,c=Math.max(0,a.responseStart-u);o={timeToFirstByte:c,firstByteToFCP:i.value-c,loadState:ar(i.entries[0].startTime),navigationEntry:a,fcpEntry:s}}}return Object.assign(i,{attribution:o})})(n);e(r)}),t)},kd=0,ko=1/0,Br=0,zy=function(e){e.forEach((function(t){t.interactionId&&(ko=Math.min(ko,t.interactionId),Br=Math.max(Br,t.interactionId),kd=Br?(Br-ko)/7+1:0)}))},Ud=function(){return wa?kd:performance.interactionCount||0},qy=function(){"interactionCount"in performance||wa||(wa=Gt("event",zy,{type:"event",buffered:!0,durationThreshold:0}))},Ne=[],Yn=new Map,$d=0,Ky=function(){var e=Math.min(Ne.length-1,Math.floor((Ud()-$d)/50));return Ne[e]},Bd=[],Wy=function(e){if(Bd.forEach((function(i){return i(e)})),e.interactionId||e.entryType==="first-input"){var t=Ne[Ne.length-1],n=Yn.get(e.interactionId);if(n||Ne.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};Yn.set(r.id,r),Ne.push(r)}Ne.sort((function(i,o){return o.latency-i.latency})),Ne.length>10&&Ne.splice(10).forEach((function(i){return Yn.delete(i.id)}))}}},Ms=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=co(e),document.visibilityState==="hidden"?e():(n=t(e),Or(e)),n},Mc=[200,500],Yy=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Rr((function(){var n;qy();var r,i=we("INP"),o=function(s){Ms((function(){s.forEach(Wy);var u=Ky();u&&u.latency!==i.value&&(i.value=u.latency,i.entries=u.entries,r())}))},a=Gt("event",o,{durationThreshold:(n=t.durationThreshold)!==null&&n!==void 0?n:40});r=Ie(e,i,Mc,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),Or((function(){o(a.takeRecords()),r(!0)})),Ht((function(){$d=Ud(),Ne.length=0,Yn.clear(),i=we("INP"),r=Ie(e,i,Mc,t.reportAllChanges)})))})))},rn=[],ct=[],Ia=0,xs=new WeakMap,on=new Map,Pa=-1,Jy=function(e){rn=rn.concat(e),jd()},jd=function(){Pa<0&&(Pa=Ms(Qy))},Qy=function(){on.size>10&&on.forEach((function(a,s){Yn.has(s)||on.delete(s)}));var e=Ne.map((function(a){return xs.get(a.entries[0])})),t=ct.length-50;ct=ct.filter((function(a,s){return s>=t||e.includes(a)}));for(var n=new Set,r=0;r<ct.length;r++){var i=ct[r];Hd(i.startTime,i.processingEnd).forEach((function(a){n.add(a)}))}var o=rn.length-1-50;rn=rn.filter((function(a,s){return a.startTime>Ia&&s>o||n.has(a)})),Pa=-1};Bd.push((function(e){e.interactionId&&e.target&&!on.has(e.interactionId)&&on.set(e.interactionId,e.target)}),(function(e){var t,n=e.startTime+e.duration;Ia=Math.max(Ia,e.processingEnd);for(var r=ct.length-1;r>=0;r--){var i=ct[r];if(Math.abs(n-i.renderTime)<=8){(t=i).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:[e]},ct.push(t)),(e.interactionId||e.entryType==="first-input")&&xs.set(e,t),jd()}));var lt,Jn,Fd,Pi,Hd=function(e,t){for(var n,r=[],i=0;n=rn[i];i++)if(!(n.startTime+n.duration<e)){if(n.startTime>t)break;r.push(n)}return r},Zy=function(e,t){Ic||(Ic=Gt("long-animation-frame",Jy)),Yy((function(n){var r=(function(i){var o=i.entries[0],a=xs.get(o),s=o.processingStart,u=a.processingEnd,c=a.entries.sort((function(g,E){return g.processingStart-E.processingStart})),l=Hd(o.startTime,u),d=i.entries.find((function(g){return g.target})),f=d&&d.target||on.get(o.interactionId),p=[o.startTime+o.duration,u].concat(l.map((function(g){return g.startTime+g.duration}))),_=Math.max.apply(Math,p),h={interactionTarget:so(f),interactionTargetElement:f,interactionType:o.name.startsWith("key")?"keyboard":"pointer",interactionTime:o.startTime,nextPaintTime:_,processedEventEntries:c,longAnimationFrameEntries:l,inputDelay:s-o.startTime,processingDuration:u-s,presentationDelay:Math.max(_-u,0),loadState:ar(o.startTime)};return Object.assign(i,{attribution:h})})(n);e(r)}),t)},xc=[2500,4e3],Uo={},eb=function(e,t){(function(n,r){r=r||{},Rr((function(){var i,o=Cs(),a=we("LCP"),s=function(l){r.reportAllChanges||(l=l.slice(-1)),l.forEach((function(d){d.startTime<o.firstHiddenTime&&(a.value=Math.max(d.startTime-uo(),0),a.entries=[d],i())}))},u=Gt("largest-contentful-paint",s);if(u){i=Ie(n,a,xc,r.reportAllChanges);var c=co((function(){Uo[a.id]||(s(u.takeRecords()),u.disconnect(),Uo[a.id]=!0,i(!0))}));["keydown","click"].forEach((function(l){addEventListener(l,(function(){return Ms(c)}),{once:!0,capture:!0})})),Or(c),Ht((function(l){a=we("LCP"),i=Ie(n,a,xc,r.reportAllChanges),Ns((function(){a.value=performance.now()-l.timeStamp,Uo[a.id]=!0,i(!0)}))}))}}))})((function(n){var r=(function(i){var o={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:i.value};if(i.entries.length){var a=Rn();if(a){var s=a.activationStart||0,u=i.entries[i.entries.length-1],c=u.url&&performance.getEntriesByType("resource").filter((function(_){return _.name===u.url}))[0],l=Math.max(0,a.responseStart-s),d=Math.max(l,c?(c.requestStart||c.startTime)-s:0),f=Math.max(d,c?c.responseEnd-s:0),p=Math.max(f,u.startTime-s);o={element:so(u.element),timeToFirstByte:l,resourceLoadDelay:d-l,resourceLoadDuration:f-d,elementRenderDelay:p-f,navigationEntry:a,lcpEntry:u},u.url&&(o.url=u.url),c&&(o.lcpResourceEntry=c)}}return Object.assign(i,{attribution:o})})(n);e(r)}),t)},Dc=[800,1800],tb=function e(t){document.prerendering?Rr((function(){return e(t)})):document.readyState!=="complete"?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},nb=function(e,t){t=t||{};var n=we("TTFB"),r=Ie(e,n,Dc,t.reportAllChanges);tb((function(){var i=Rn();i&&(n.value=Math.max(i.responseStart-uo(),0),n.entries=[i],r(!0),Ht((function(){n=we("TTFB",0),(r=Ie(e,n,Dc,t.reportAllChanges))(!0)})))}))},rb=function(e,t){nb((function(n){var r=(function(i){var o={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(i.entries.length){var a=i.entries[0],s=a.activationStart||0,u=Math.max((a.workerStart||a.fetchStart)-s,0),c=Math.max(a.domainLookupStart-s,0),l=Math.max(a.connectStart-s,0),d=Math.max(a.connectEnd-s,0);o={waitingDuration:u,cacheDuration:c-u,dnsDuration:l-c,connectionDuration:d-l,requestDuration:i.value-d,navigationEntry:a}}return Object.assign(i,{attribution:o})})(n);e(r)}),t)},Vn={passive:!0,capture:!0},ib=new Date,kc=function(e,t){lt||(lt=t,Jn=e,Fd=new Date,Vd(removeEventListener),Gd())},Gd=function(){if(Jn>
47=0&&Jn<Fd-ib){var e={entryType:"first-input",name:lt.type,target:lt.target,cancelable:lt.cancelable,startTime:lt.timeStamp,processingStart:lt.timeStamp+Jn};Pi.forEach((function(t){t(e)})),Pi=[]}},ob=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;e.type=="pointerdown"?(function(n,r){var i=function(){kc(n,r),a()},o=function(){a()},a=function(){removeEventListener("pointerup",i,Vn),removeEventListener("pointercancel",o,Vn)};addEventListener("pointerup",i,Vn),addEventListener("pointercancel",o,Vn)})(t,e):kc(t,e)}},Vd=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,ob,Vn)}))},Uc=[100,300],ab=function(e,t){t=t||{},Rr((function(){var n,r=Cs(),i=we("FID"),o=function(u){u.startTime<r.firstHiddenTime&&(i.value=u.processingStart-u.startTime,i.entries.push(u),n(!0))},a=function(u){u.forEach(o)},s=Gt("first-input",a);n=Ie(e,i,Uc,t.reportAllChanges),s&&(Or(co((function(){a(s.takeRecords()),s.disconnect()}))),Ht((function(){var u;i=we("FID"),n=Ie(e,i,Uc,t.reportAllChanges),Pi=[],Jn=-1,lt=null,Vd(addEventListener),u=o,Pi.push(u),Gd()})))}))},sb=function(e,t){ab((function(n){var r=(function(i){var o=i.entries[0],a={eventTarget:so(o.target),eventType:o.name,eventTime:o.startTime,eventEntry:o,loadState:ar(o.startTime)};return Object.assign(i,{attribution:a})})(n);e(r)}),t)};const La="com.grafana.faro.lastNavigationId",jr="load_state",$c="time_to_first_byte";class ub{constructor(t,n){this.corePushMeasurement=t,this.webVitalConfig=n}initialize(){this.measureCLS(),this.measureFCP(),this.measureFID(),this.measureINP(),this.measureLCP(),this.measureTTFB()}measureCLS(){var t;Vy(n=>{const{loadState:r,largestShiftValue:i,largestShiftTime:o,largestShiftTarget:a}=n.attribution,s=this.buildInitialValues(n);this.addIfPresent(s,"largest_shift_value",i),this.addIfPresent(s,"largest_shift_time",o);const u=this.buildInitialContext(n);this.addIfPresent(u,jr,r),this.addIfPresent(u,"largest_shift_target",a),this.pushMeasurement(s,u)},{reportAllChanges:(t=this.webVitalConfig)===null||t===void 0?void 0:t.reportAllChanges})}measureFCP(){var t;Xy(n=>{const{firstByteToFCP:r,timeToFirstByte:i,loadState:o}=n.attribution,a=this.buildInitialValues(n);this.addIfPresent(a,"first_byte_to_fcp",r),this.addIfPresent(a,$c,i);const s=this.buildInitialContext(n);this.addIfPresent(s,jr,o),this.pushMeasurement(a,s)},{reportAllChanges:(t=this.webVitalConfig)===null||t===void 0?void 0:t.reportAllChanges})}measureFID(){var t;sb(n=>{const{eventTime:r,eventTarget:i,eventType:o,loadState:a}=n.attribution,s=this.buildInitialValues(n);this.addIfPresent(s,"event_time",r);const u=this.buildInitialContext(n);this.addIfPresent(u,"event_target",i),this.addIfPresent(u,"event_type",o),this.addIfPresent(u,jr,a),this.pushMeasurement(s,u)},{reportAllChanges:(t=this.webVitalConfig)===null||t===void 0?void 0:t.reportAllChanges})}measureINP(){var t;Zy(n=>{const{interactionTime:r,presentationDelay:i,inputDelay:o,processingDuration:a,nextPaintTime:s,loadState:u,interactionTarget:c,interactionType:l}=n.attribution,d=this.buildInitialValues(n);this.addIfPresent(d,"interaction_time",r),this.addIfPresent(d,"presentation_delay",i),this.addIfPresent(d,"input_delay",o),this.addIfPresent(d,"processing_duration",a),this.addIfPresent(d,"next_paint_time",s);const f=this.buildInitialContext(n);this.addIfPresent(f,jr,u),this.addIfPresent(f,"interaction_target",c),this.addIfPresent(f,"interaction_type",l),this.pushMeasurement(d,f)},{reportAllChanges:(t=this.webVitalConfig)===null||t===void 0?void 0:t.reportAllChanges})}measureLCP(){var t;eb(n=>{const{elementRenderDelay:r,resourceLoadDelay:i,resourceLoadDuration:o,timeToFirstByte:a,element:s}=n.attribution,u=this.buildInitialValues(n);this.addIfPresent(u,"element_render_delay",r),this.addIfPresent(u,"resource_load_delay",i),this.addIfPresent(u,"resource_load_duration",o),this.addIfPresent(u,$c,a);const c=this.buildInitialContext(n);this.addIfPresent(c,"element",s),this.pushMeasurement(u,c)},{reportAllChanges:(t=this.webVitalConfig)===null||t===void 0?void 0:t.reportAllChanges})}measureTTFB(){var t;rb(n=>{const{dnsDuration:r,connectionDuration:i,requestDuration:o,waitingDuration:a,cacheDuration:s}=n.attribution,u=this.buildInitialValues(n);this.addIfPresent(u,"dns_duration",r),this.addIfPresent(u,"connection_duration",i),this.addIfPresent(u,"request_duration",o),this.addIfPresent(u,"waiting_duration",a),this.addIfPresent(u,"cache_duration",s);const c=this.buildInitialContext(n);this.pushMeasurement(u,c)},{reportAllChanges:(t=this.webVitalConfig)===null||t===void 0?void 0:t.reportAllChanges})}buildInitialValues(t){return{[t.name.toLowerCase()]:t.value,delta:t.delta}}buildInitialContext(t){var n;const r=(n=no(La,nt.session))!==null&&n!==void 0?n:he;return{id:t.id,rating:t.rating,navigation_type:t.navigationType,navigation_entry_id:r}}pushMeasurement(t,n){this.corePushMeasurement({type:"web-vitals",values:t},{context:n})}addIfPresent(t,n,r){r&&(t[n]=r)}}class cb extends Rt{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-web-vitals",this.version=He}initialize(){this.logDebug("Initializing"),this.intializeWebVitalsInstrumentation().initialize()}intializeWebVitalsInstrumentation(){var t;return!((t=this.config)===null||t===void 0)&&t.trackWebVitalsAttribution?new ub(this.api.pushMeasurement,this.config.webVitalsInstrumentation):new ao(this.api.pushMeasurement,this.config.webVitalsInstrumentation)}}const lb="navigation",Na="resource",fb=/^00-[a-f0-9]{32}-[a-f0-9]{16}-[0-9]{1,2}$/;function Xd(e=[]){for(const t of e)if(t.name==="traceparent"){if(!fb.test(t.description))continue;const[,n,r]=t.description.split("-");if(n!=null&&r!=null)return{traceId:n,spanId:r};break}}function db(){return"PerformanceObserver"in window}function pb(e){if(document.readyState==="complete")e();else{const t=()=>{document.readyState==="complete"&&(e(),document.removeEventListener("readystatechange",t))};document.addEventListener("readystatechange",t)}}function _b(e,t={}){for(const[n,r]of Object.entries(t)){const i=e[n];return i==null?!1:or(r)?r.includes(i):i===r}return!0}function zd(e){const{connectEnd:t,connectStart:n,decodedBodySize:r,domainLookupEnd:i,domainLookupStart:o,duration:a,encodedBodySize:s,fetchStart:u,initiatorType:c,name:l,nextHopProtocol:d,redirectEnd:f,redirectStart:p,renderBlockingStatus:_,requestStart:h,responseEnd:g,responseStart:E,responseStatus:b,secureConnectionStart:v,transferSize:T,workerStart:O}=e;return{name:l,duration:Q(a),tcpHandshakeTime:Q(t-n),dnsLookupTime:Q(i-o),tlsNegotiationTime:Q(h-v),responseStatus:Q(b),redirectTime:Q(f-p),requestTime:Q(E-h),responseTime:Q(g-E),fetchTime:Q(g-u),serviceWorkerTime:Q(u-O),decodedBodySize:Q(r),encodedBodySize:Q(s),cacheHitStatus:m(),renderBlockingStatus:Q(_),protocol:d,initiatorType:c,visibilityState:document.visibilityState,ttfb:Q(E-h)};function m(){let R="fullLoad";return T===0?r>0&&(R="cache"):b!=null?b===304&&(R="conditionalFetch"):s>
vendor: 1,435 bytes, line 47
470&&T<s&&(R="conditionalFetch"),R}}function hb(e){const{activationStart:t,domComplete:n,domContentLoadedEventEnd:r,domContentLoadedEventStart:i,domInteractive:o,fetchStart:a,loadEventEnd:s,loadEventStart:u,responseStart:c,type:l}=e,d=gb();return Object.assign(Object.assign({},zd(e)),{pageLoadTime:Q(n-a),documentParsingTime:Q(d?o-d:null),domProcessingTime:Q(n-o),domContentLoadHandlerTime:Q(r-i),onLoadTime:Q(s-u),ttfb:Q(Math.max(c-(t??0),0)),type:l})}function gb(){var e;return((e=performance.timing)===null||e===void 0?void 0:e.domLoading)!=null?performance.timing.domLoading-performance.timeOrigin:null}function Q(e){return e==null?he:typeof e=="number"?Math.round(e).toString():e.toString()}function mb(e){let t;const n=new Promise(i=>{t=i});return new PerformanceObserver(i=>{var o;const[a]=i.getEntries();if(a==null||ro(a.name))return;const s=a.toJSON();let u=Xd(s?.serverTiming);const c=(o=no(La,nt.session))!==null&&o!==void 0?o:he,l=Object.assign(Object.assign({},hb(s)),{faroNavigationId:Bt(),faroPreviousNavigationId:c});Os(La,l.faroNavigationId,nt.session),e("faro.performance.navigation",l,void 0,{spanContext:u,timestampOverwriteMs:performance.timeOrigin+s.startTime}),t(l)}).observe({type:lb,buffered:!0}),n}const vb={initiatorType:["xmlhttprequest","fetch"]};function Eb(e,t,n){const r=V.config.trackResources;new PerformanceObserver(o=>{const a=o.getEntries();for(const s of a){if(ro(s.name))return;const u=s.toJSON();
47let c=Xd(u?.serverTiming);if(r==null&&_b(u,vb)||r){const l=Object.assign(Object.assign({},zd(u)),{faroNavigationId:e,faroResourceId:Bt()});V.config.trackUserActionsPreview&&n?.notify({type:Na}),t("faro.performance.resource",l,void 0,{spanContext:c,timestampOverwriteMs:performance.timeOrigin+u.startTime})}}}).observe({type:Na,buffered:!0})}var Tb=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(d){a(d)}}function u(l){try{c(r.throw(l))}catch(d){a(d)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(e,t||[])).next())})};const qd=new Ce;class Sb extends Rt{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-performance",this.version=He}initialize(){if(!db()){this.logDebug("performance observer not supported. Disable performance instrumentation.");return}pb(()=>Tb(this,void 0,void 0,function*(){const t=this.api.pushEvent,{faroNavigationId:n}=yield mb(t);n!=null&&Eb(n,t,qd)}))}}const yb="resource-entry",Kd="http-request-start",Wd="http-request-end",bb="dom-mutation",Ob="faroUserActionName",Rb="data-faro-user-action-name";function Ab(){const e=new Ce;return new MutationObserver((n,r)=>{e.notify({type:bb})}).observe(document,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),e}const $o="fetch",Fr="xhr";function wb(){const e=new Ce;function t(r){e.notify({type:Kd,request:r})}function n(r){e.notify({type:Wd,request:r})}return Pb({onRequestStart:t,onRequestEnd:n}),Ib({onRequestStart:t,onRequestEnd:n}),e}function Ib({onRequestStart:e,onRequestEnd:t}){const n=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(){const r=arguments[1],i=ro(r),o=arguments[0],a=Bt();this.addEventListener("loadstart",function(){i||e({url:r,method:o,requestId:a,apiType:Fr})}),this.addEventListener("load",function(){i||t({url:r,method:o,requestId:a,apiType:Fr})}),this.addEventListener("error",function(){i||t({url:r,method:o,requestId:a,apiType:Fr})}),this.addEventListener("abort",function(){i||t({url:r,method:o,requestId:a,apiType:Fr})}),n.apply(this,arguments)}}function Pb({onRequestEnd:e,onRequestStart:t}){const n=window.fetch;window.fetch=function(){var r,i;const o=(r=ZS(arguments[0]))!==null&&r!==void 0?r:"",a=ro(o),s=((i=arguments[1])!==null&&i!==void 0?i:{}).method,u=Bt();return a||t({url:o,method:s,requestId:u,apiType:$o}),n.apply(this,arguments).then(c=>(a||e({url:o,method:s,requestId:u,apiType:$o}),c)).catch(c=>{throw a||e({url:o,method:s,requestId:u,apiType:$o}),c})}}function Lb(){const e=new Ce;return qd.subscribe(t=>{t.type===Na&&e.notify({type:yb})}),e}function Nb(e){const t=e.split("data-")[1],n=t?.replace(/-(.)/g,(r,i)=>i.toUpperCase());return n?.replace(/-/g,"")}const Bc=100;function Cb(e){const{api:t,config:n}=e,r=wb(),i=Ab(),o=Lb();let a,s=!1;function u(c){var l;const d=Mb(c.target,(l=n.trackUserActionsDataAttributeName)!==null&&l!==void 0?l:Ob);if(s||d==null)return;s=!0;const f=ft();let p;const _=Bt();dn.notify({type:jt,name:d,startTime:f,parentId:_}),a=Bo(a,()=>{p=ft(),s=!1,xb(d,_)},Bc);const h=new Map;let g=!1,E;const b=new Ce().merge(r,i,o).takeWhile(()=>s).filter(v=>!(g&&!(Hc(v)&&h.has(v.request.requestId)))).subscribe(v=>{Db(v)&&h.set(v.request.requestId,v.request),Hc(v)&&h.delete(v.request.requestId),a=Bo(a,()=>{p=ft();const T={api:t,userActionName:d,startTime:f,endTime:p,actionId:_,event:c},O=h.size>0;g&&!O&&(clearTimeout(E),g=!1),O?(g=!0,dn.notify({type:ad,name:d,parentId:_,reason:"pending-requests",haltTime:ft()}),E=Bo(void 0,()=>{Fc(b),jc(T),s=!1,g=!1},1e3*10)):(Fc(b),jc(T),s=!1,g=!1)},Bc)})}return u}function jc(e){const{api:t,userActionName:n,startTime:r,endTime:i,actionId:o,event:a}=e,s=i-r,u=a.type;dn.notify({type:ys,name:n,id:o,startTime:r,endTime:i,duration:s,eventType:u}),t.pushEvent(n,{userActionStartTime:r.toString(),userActionEndTime:i.toString(),userActionDuration:s.toString(),userActionEventType:u},void 0,{timestampOverwriteMs:r,customPayloadTransformer:c=>(c.action={id:o,name:n},c)})}function Mb(e,t){const n=Nb(t),r=e.dataset;for(const i in r)if(i===n)return r[i]}
47function Bo(e,t,n){return e&&clearTimeout(e),e=setTimeout(()=>{t()},n),e}function xb(e,t){dn.notify({type:bs,name:e,parentId:t})}function Fc(e){e?.unsubscribe(),e=void 0}function Db(e){return e.type===Kd}function Hc(e){return e.type===Wd}class kb extends Rt{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-user-action",this.version=He}initialize(){const t=Cb(V);window.addEventListener("pointerdown",t),window.addEventListener("keydown",t)}}function Yd(e={}){const t=[new kb,new Ay,new cb,new iy,new wy];return e.enablePerformanceInstrumentation!==!1&&t.unshift(new Sb),e.captureConsole!==!1&&t.push(new dt({disabledLevels:e.captureConsoleDisabledLevels})),t}const Ub="browser",$b=()=>{const e=window.k6;return{k6:Object.assign({isK6Browser:!0},e?.testRunId&&{testRunId:e?.testRunId})}};let Gc,jo;function Bb({generatePageId:e,initialPageMeta:t}={}){return()=>{const r=location.href;return bn(e)&&Gc!==r&&(Gc=r,jo=e(location)),{page:Object.assign(Object.assign({url:r},jo?{id:jo}:{}),t)}}}var Vc=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(d){a(d)}}function u(l){try{c(r.throw(l))}catch(d){a(d)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(e,t||[])).next())})},jb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Fb=30,Hb=5,Gb=5e3,Vb=6e4,Xb=429,zb=202;class qb extends vS{constructor(t){var n,r,i,o;super(),this.options=t,this.name="@grafana/faro-web-sdk:transport-fetch",this.version=He,this.disabledUntil=new Date,this.rateLimitBackoffMs=(n=t.defaultRateLimitBackoffMs)!==null&&n!==void 0?n:Gb,this.getNow=(r=t.getNow)!==null&&r!==void 0?r:(()=>Date.now()),this.promiseBuffer=aS({size:(i=t.bufferSize)!==null&&i!==void 0?i:Fb,concurrency:(o=t.concurrency)!==null&&o!==void 0?o:Hb})}send(t){return Vc(this,void 0,void 0,function*(){try{if(this.disabledUntil>new Date(this.getNow()))return this.logWarn(`Dropping transport item due to too many requests. Backoff until ${this.disabledUntil}`),Promise.resolve();yield this.promiseBuffer.add(()=>{const n=JSON.stringify(SS(t)),{url:r,requestOptions:i,apiKey:o}=this.options,a=i??{},{headers:s}=a,u=jb(a,["headers"]);let c;const l=this.metas.value.session;return l!=null&&(c=l.id),fetch(r,Object.assign({method:"POST",headers:Object.assign(Object.assign(Object.assign({"Content-Type":"application/json"},s??{}),o?{"x-api-key":o}:{}),c?{"x-faro-session-id":c}:{}),body:n,keepalive:n.length<=Vb},u??{})).then(d=>Vc(this,void 0,void 0,function*(){return d.status===zb&&d.headers.get("X-Faro-Session-Status")==="invalid"&&this.extendFaroSession(this.config,this.logDebug),d.status===Xb&&(this.disabledUntil=this.getRetryAfterDate(d),this.logWarn(`Too many requests, backing off until ${this.disabledUntil}`)),d.text().catch(Je),d})).catch(d=>{this.logError(`Failed sending payload to the receiver
48`,JSON.parse(n),d)})})}catch(n){this.logError(n)}})}getIgnoreUrls(){var t;return[this.options.url].concat((t=this.config.ignoreUrls)!==null&&t!==void 0?t:[])}isBatched(){return!0}getRetryAfterDate(t){const n=this.getNow(),r=t.headers.get("Retry-After");if(r){const i=Number(r);if(!isNaN(i))return new Date(i*1e3+n);const o=Date.parse(r);if(!isNaN(o))return new Date(o)}return new Date(n+this.rateLimitBackoffMs)}extendFaroSession(t,n){const r="Session expired",i=t.sessionTracking;if(i?.enabled){const{fetchUserSession:o,storeUserSession:a}=Ed(i);ws({fetchUserSession:o,storeUserSession:a})({forceSessionExtend:!0}),n(`${r} created new session.`)}else n(`${r}.`)}}function Kb(e){var t;const n=[],r=id(e.unpatchedConsole,e.internalLoggerLevel);e.transports?((e.url||e.apiKey)&&r.error('if "transports" is defined, "url" and "apiKey" should not be defined'),n.push(...e.transports)):e.url?n.push(new qb({url:e.url,apiKey:e.apiKey})):r.error('either "url" or "transports" must be defined');const{app:i,batching:o,beforeSend:a,consoleInstrumentation:s,ignoreErrors:u,sessionTracking:c,trackResources:l,trackWebVitalsAttribution:d,user:f,view:p,trackGeolocation:_,dedupe:h=!0,eventDomain:g=Ub,globalObjectKey:E=VS,instrumentations:b=Yd(),internalLoggerLevel:v=rd,isolate:T=!1,logArgsSerializer:O=Oi,metas:m=Yb(e),paused:R=!1,preventGlobalExposure:U=!1,unpatchedConsole:j=to,webVitalsInstrumentation:ne,trackUserActionsPreview:ye=!1,trackUserActionsDataAttributeName:X=Rb,trackUserActionsExcludeItem:se}=e;return{app:i,batching:Object.assign(Object.assign({}
vendor: 5,905 bytes, line 48
48,XS),o),dedupe:h,globalObjectKey:E,instrumentations:Wb(b,e),internalLoggerLevel:v,isolate:T,logArgsSerializer:O,metas:m,parseStacktrace:by,paused:R,preventGlobalExposure:U,transports:n,unpatchedConsole:j,beforeSend:a,eventDomain:g,ignoreErrors:u,ignoreUrls:((t=e.ignoreUrls)!==null&&t!==void 0?t:[]).concat([/\/collect(?:\/[\w]*)?$/]),sessionTracking:Object.assign(Object.assign(Object.assign({},ny),c),Jb({trackGeolocation:_,sessionTracking:c})),user:f,view:p,trackResources:l,trackWebVitalsAttribution:d,consoleInstrumentation:s,webVitalsInstrumentation:ne,trackUserActionsPreview:ye,trackUserActionsDataAttributeName:X,trackUserActionsExcludeItem:se}}function Wb(e,{trackUserActionsPreview:t}){return e.filter(n=>!(n.name==="@grafana/faro-web-sdk:instrumentation-user-action"&&!t))}function Yb(e){var t,n;const{page:r,generatePageId:i}=(t=e?.pageTracking)!==null&&t!==void 0?t:{},o=[YS,Bb({generatePageId:i,initialPageMeta:r}),...(n=e.metas)!==null&&n!==void 0?n:[]];return je(window.k6)?[...o,$b]:o}function Jb({trackGeolocation:e,sessionTracking:t}){var n;const r={};return YT(e)&&(r.geoLocationTrackingEnabled=e),rt(r)?{}:{session:Object.assign(Object.assign({},(n=t?.session)!==null&&n!==void 0?n:{}),{overrides:r})}}function Qb(e){const t=Kb(e);if(t)return GS(t)}var Zb=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},Lt="1.9.0",Xc=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function eO(e){var t=new Set([e]),n=new Set,r=e.match(Xc);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(u){return u===e};function o(s){return n.add(s),!1}function a(s){return t.add(s),!0}return function(u){if(t.has(u))return!0;if(n.has(u))return!1;var c=u.match(Xc);if(!c)return o(u);var l={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return l.prerelease!=null||i.major!==l.major?o(u):i.major===0?i.minor===l.minor&&i.patch<=l.patch?a(u):o(u):i.minor<=l.minor?a(u):o(u)}}var tO=eO(Lt),nO=Lt.split(".")[0],sr=Symbol.for("opentelemetry.js.api."+nO),ur=Zb;function Ar(e,t,n,r){var i;r===void 0&&(r=!1);var o=ur[sr]=(i=ur[sr])!==null&&i!==void 0?i:{version:Lt};if(!r&&o[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(a.stack||a.message),!1}if(o.version!==Lt){var a=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+e+" does not match previously registered API v"+Lt);return n.error(a.stack||a.message),!1}return o[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+Lt+"."),!0}function Ut(e){var t,n,r=(t=ur[sr])===null||t===void 0?void 0:t.version;if(!(!r||!tO(r)))return(n=ur[sr])===null||n===void 0?void 0:n[e]}function wr(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Lt+".");var n=ur[sr];n&&delete n[e]}var rO=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},iO=function(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},oO=(function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return kn("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return kn("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return kn("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return kn("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return kn("verbose",this._namespace,t)},e})();function kn(e,t,n){var r=Ut("diag");if(r)return n.unshift(t),r[e].apply(r,iO([],rO(n),!1))}var k;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(k||(k={}));function aO(e,t){e<k.NONE?e=k.NONE:e>k.ALL&&(e=k.ALL),t=t||{};function n(r,i){var o=t[r];return typeof o=="function"&&e>=i?o.bind(t):function(){}}return{error:n("error",k.ERROR),warn:n("warn",k.WARN),info:n("info",k.INFO),debug:n("debug",k.DEBUG),verbose:n("verbose",k.VERBOSE)}}var sO=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},uO=function(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},cO="diag",Fe=(function(){function e(){function t(i){return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=Ut("diag");if(s)return s[i].apply(s,uO([],sO(o),!1))}}var n=this,r=function(i,o){var a,s,u;if(o===void 0&&(o={logLevel:k.INFO}),i===n){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((a=c.stack)!==null&&a!==void 0?a:c.message),!1}typeof o=="number"&&(o={logLevel:o});var l=Ut("diag"),d=aO((s=o.logLevel)!==null&&s!==void 0?s:k.INFO,i);if(l&&!o.suppressOverrideMessage){var f=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+f),d.warn("Current logger will over
48write one already registered from "+f)}return Ar("diag",d,n,!0)};n.setLogger=r,n.disable=function(){wr(cO,n)},n.createComponentLogger=function(i){return new oO(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e})(),lO=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},fO=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},dO=(function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=lO(t,2),r=n[0],i=n[1];return[r,i]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new e(this._entries);try{for(var a=fO(r),s=a.next();!s.done;s=a.next()){var u=s.value;o._entries.delete(u)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o},e.prototype.clear=function(){return new e},e})(),pO=Symbol("BaggageEntryMetadata"),_O=Fe.instance();function hO(e){return e===void 0&&(e={}),new dO(new Map(Object.entries(e)))}function Jd(e){return typeof e!="string"&&(_O.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:pO,toString:function(){return e}}}function An(e){return Symbol.for(e)}var gO=(function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var o=new e(n._currentContext);return o._currentContext.set(r,i),o},n.deleteValue=function(r){var i=new e(n._currentContext);return i._currentContext.delete(r),i}}return e})(),Qt=new gO,Vt=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),mO=(function(){function e(){}return e.prototype.createGauge=function(t,n){return wO},e.prototype.createHistogram=function(t,n){return IO},e.prototype.createCounter=function(t,n){return AO},e.prototype.createUpDownCounter=function(t,n){return PO},e.prototype.createObservableGauge=function(t,n){return NO},e.prototype.createObservableCounter=function(t,n){return LO},e.prototype.createObservableUpDownCounter=function(t,n){return CO},e.prototype.addBatchObservableCallback=function(t,n){},e.prototype.removeBatchObservableCallback=function(t){},e})(),lo=(function(){function e(){}return e})(),vO=(function(e){Vt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t})(lo),EO=(function(e){Vt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t})(lo),TO=(function(e){Vt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t})(lo),SO=(function(e){Vt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t})(lo),Ds=(function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e})(),yO=(function(e){Vt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Ds),bO=(function(e){Vt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Ds),OO=(function(e){Vt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Ds),RO=new mO,AO=new vO,wO=new TO,IO=new SO,PO=new EO,LO=new yO,NO=new bO,CO=new OO,MO={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},xO={set:function(e,t,n){e!=null&&(e[t]=n)}},DO=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},kO=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},UO=(function(){function e(){}return e.prototype.active=function(){return Qt},e.prototype.with=function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return n.call.apply(n,kO([r],DO(i),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e})(),$O=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},BO=function(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Fo="context",jO=new UO,fo=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Ar(Fo,t,Fe.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,r){for(var i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return(i=this._getContextManager()).with.apply(i,BO([t,n,r],$O(o),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return Ut(Fo)||jO},e.prototype.disable=function(){this._getContextManager().disable(),wr(Fo,Fe.instance())},e})(),Te;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Te||(Te={}));var Qd="0000000000000000",Zd="00000000000000000000000000000000",ep={traceId:Zd,spanId:Qd,traceFlags:Te.NONE},Qn=(function(){function e(t){t===void 0&&(t=ep),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e})(),ks=An("OpenTelemetry Context Key SPAN");function Us(e){return e.getValue(ks)||void 0}function FO(){return Us(fo.getInstance().active())}function $s(e,t){return e.setValue(ks,t)}function HO(e){return e.deleteValue(ks)}function GO(e,t){return $s(e,new Qn(t))}function tp(e){var t;return(t=Us(e))===null||t===void 0?void 0:t.spanContext()}var VO=/^([0-9a-f]{32})$/i,XO=/^[0-9a-f]{16}$/i;function Bs(e){return VO.test(e)&&e!==Zd}function zO(e){return XO.test(e)&&e!==Qd}function Xt(e){return Bs(e.traceId)&&zO(e.spanId)}function qO(e){return new Qn(e)}var Ho=fo.getInstance(),np=(function(){function e(){}return e.prototype.startSpan=function(t,n,r){r===void 0&&(r=Ho.active());var i=!!n?.root;if(i)return new Qn;var o=r&&tp(r);return KO(o)&&Xt(o)?new Qn(o):new Qn},e.prototype.startActiveSpan=function(t,n,r,i){var o,a,s;if(!(arguments.length<2)){arguments.length===2?s=n:arguments.length===3?(o=n,s=r):(o=n,a=r,s=i);var u=a??Ho.active(),c=this.startSpan(t,o,u),l=$s(u,c);return Ho.with(l,s,void 0,c)}},e})();function KO(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var WO=new np,YO=(function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.startSpan=function(t,n,r){return this._getTracer().startSpan(t,n,r)},e.prototype.startActiveSpan=function(t,n,r,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):WO},e})(),JO=(function(){function e(){}return e.prototype.getTracer=function(t,n,r){return new np},e}
48)(),QO=new JO,zc=(function(){function e(){}return e.prototype.getTracer=function(t,n,r){var i;return(i=this.getDelegateTracer(t,n,r))!==null&&i!==void 0?i:new YO(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:QO},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,r)},e})(),St;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(St||(St={}));var pn;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(pn||(pn={}));var Li;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Li||(Li={}));var q=fo.getInstance(),L=Fe.instance(),ZO=(function(){function e(){}return e.prototype.getMeter=function(t,n,r){return RO},e})(),e0=new ZO,Go="metrics",t0=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Ar(Go,t,Fe.instance())},e.prototype.getMeterProvider=function(){return Ut(Go)||e0},e.prototype.getMeter=function(t,n,r){return this.getMeterProvider().getMeter(t,n,r)},e.prototype.disable=function(){wr(Go,Fe.instance())},e})(),js=t0.getInstance(),n0=(function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e})(),Fs=An("OpenTelemetry Baggage Key");function rp(e){return e.getValue(Fs)||void 0}function r0(){return rp(fo.getInstance().active())}function i0(e,t){return e.setValue(Fs,t)}function o0(e){return e.deleteValue(Fs)}var Vo="propagation",a0=new n0,s0=(function(){function e(){this.createBaggage=hO,this.getBaggage=rp,this.getActiveBaggage=r0,this.setBaggage=i0,this.deleteBaggage=o0}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Ar(Vo,t,Fe.instance())},e.prototype.inject=function(t,n,r){return r===void 0&&(r=xO),this._getGlobalPropagator().inject(t,n,r)},e.prototype.extract=function(t,n,r){return r===void 0&&(r=MO),this._getGlobalPropagator().extract(t,n,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){wr(Vo,Fe.instance())},e.prototype._getGlobalPropagator=function(){return Ut(Vo)||a0},e})(),le=s0.getInstance(),Xo="trace",u0=(function(){function e(){this._proxyTracerProvider=new zc,this.wrapSpanContext=qO,this.isSpanContextValid=Xt,this.deleteSpan=HO,this.getSpan=Us,this.getActiveSpan=FO,this.getSpanContext=tp,this.setSpan=$s,this.setSpanContext=GO}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=Ar(Xo,this._proxyTracerProvider,Fe.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return Ut(Xo)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){wr(Xo,Fe.instance()),this._proxyTracerProvider=new zc},e})(),K=u0.getInstance();const c0=An("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function l0(e){return e.getValue(c0)===!0}var Ca;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Ca||(Ca={}));const Ma="[_0-9a-z-*/]",f0=`[a-z]${Ma}{0,255}`,d0=`[a-z0-9]${Ma}{0,240}@[a-z]${Ma}{0,13}`,p0=new RegExp(`^(?:${f0}|${d0})$`),_0=/^[ -~]{0,255}[!-~]$/,h0=/,|=/;function qc(e){return p0.test(e)}function Kc(e){return _0.test(e)&&!h0.test(e)}const g0=32,Wc=512,Yc=",",Jc="=";let m0=class ip{_length;_rawTraceState;_internalState;constructor(t){this._rawTraceState=typeof t=="string"?t:"",this._length=this._rawTraceState.length}set(t,n){if(!qc(t)||!Kc(n))return this;const r=this._getState(),i=r.get(t);let o=this._length;if(typeof i=="string"?o+=n.length-i.length:o+=t.length+n.length+(r.size>0?2:1),o>Wc)return this;const a=new Map(r);return a.delete(t),a.set(t,n),this._fromState(a,o)}unset(t){const n=this._getState(),r=n.get(t);if(typeof r!="string")return this;let i=this._length-(t.length+r.length+1);n.size>1&&(i=i-1);const o=new Map(n);return o.delete(t),this._fromState(o,i)}get(t){return this._getState().get(t)}serialize(){let t="",n=0;for(const r of this._getState())n>0&&(t=Yc+t),t=`${r[0]}${Jc}${r[1]}`+t,n++;return t}_getState(){if(this._internalState)return this._internalState;const t=this._rawTraceState.split(Yc),n=new Map;let r=0;for(const i of t){const o=i.trim(),a=o.indexOf(Jc);if(a===-1)continue;const s=o.slice(0,a),u=o.slice(a+1);if(!qc(s)||!Kc(u))continue;const c=r+o.length+(n.size>0?1:0);if(!(c>Wc)&&(n.set(s,u),r=c,n.size>=g0))break}return this._length=r,this._internalState=new Map(Array.from(n.entries()).reverse()),this._internalState}_fromState(t,n){const r=Object.create(ip.prototype);return r._internalState=t,r._length=n,r}};const zo="traceparent",qo="tracestate",v0="00",E0="(?!ff)[\\da-f]{2}",T0="(?![0]{32})[\\da-f]{32}",S0="(?![0]{16})[\\da-f]{16}",y0="[\\da-f]{2}",b0=new RegExp(`^\\s?(${E0})-(${T0})-(${S0})-(${y0})(-.*)?\\s?$`);function O0(e){const t=b0.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}
48let R0=class{inject(t,n,r){const i=K.getSpanContext(t);if(!i||l0(t)||!Xt(i))return;const o=`${v0}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Te.NONE).toString(16)}`;r.set(n,zo,o),i.traceState&&r.set(n,qo,i.traceState.serialize())}extract(t,n,r){const i=r.get(n,zo);if(!i)return t;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return t;const a=O0(o);if(!a)return t;a.isRemote=!0;const s=r.get(n,qo);if(s){const u=Array.isArray(s)?s.join(","):s;a.traceState=new m0(typeof u=="string"?u:void 0)}return K.setSpanContext(t,a)}fields(){return[zo,qo]}};var Qe={},ge={};Object.defineProperty(ge,"__esModule",{value:!0});var op=ge.toAnyValue=lp=ge.toKeyValue=cp=ge.toAttributes=sp=ge.createInstrumentationScope=ap=ge.createResource=void 0;function A0(e){return{attributes:up(e.attributes),droppedAttributesCount:0}}var ap=ge.createResource=A0;function w0(e){return{name:e.name,version:e.version}}var sp=ge.createInstrumentationScope=w0;function up(e){return Object.keys(e).map(t=>Hs(t,e[t]))}var cp=ge.toAttributes=up;function Hs(e,t){return{key:e,value:Gs(t)}}var lp=ge.toKeyValue=Hs;function Gs(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(Gs)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([n,r])=>Hs(n,r))}}:{}}op=ge.toAnyValue=Gs;const I0=tf({__proto__:null,get createInstrumentationScope(){return sp},get createResource(){return ap},default:ge,get toAnyValue(){return op},get toAttributes(){return cp},get toKeyValue(){return lp}},[ge]),P0=Vi(I0);var me={},Vs=An("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function fp(e){return e.setValue(Vs,!0)}function L0(e){return e.deleteValue(Vs)}function Xs(e){return e.getValue(Vs)===!0}var N0="=",xa=";",Ni=",",Ko="baggage",C0=180,M0=4096,x0=8192,D0=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o};function dp(e){return e.reduce(function(t,n){var r=""+t+(t!==""?Ni:"")+n;return r.length>x0?t:r},"")}function pp(e){return e.getAllEntries().map(function(t){var n=D0(t,2),r=n[0],i=n[1],o=encodeURIComponent(r)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(o+=xa+i.metadata.toString()),o})}function zs(e){var t=e.split(xa);if(!(t.length<=0)){var n=t.shift();if(n){var r=n.indexOf(N0);if(!(r<=0)){var i=decodeURIComponent(n.substring(0,r).trim()),o=decodeURIComponent(n.substring(r+1).trim()),a;return t.length>0&&(a=Jd(t.join(xa))),{key:i,value:o,metadata:a}}}}}function k0(e){return typeof e!="string"||e.length===0?{}:e.split(Ni).map(function(t){return zs(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,n){return t[n.key]=n.value,t},{})}var U0=(function(){function e(){}return e.prototype.inject=function(t,n,r){var i=le.getBaggage(t);if(!(!i||Xs(t))){var o=pp(i).filter(function(s){return s.length<=M0}).slice(0,C0),a=dp(o);a.length>0&&r.set(n,Ko,a)}},e.prototype.extract=function(t,n,r){var i=r.get(n,Ko),o=Array.isArray(i)?i.join(Ni):i;if(!o)return t;var a={};if(o.length===0)return t;var s=o.split(Ni);return s.forEach(function(u){var c=zs(u);if(c){var l={value:c.value};c.metadata&&(l.metadata=c.metadata),a[c.key]=l}}),Object.entries(a).length===0?t:le.setBaggage(t,le.createBaggage(a))},e.prototype.fields=function(){return[Ko]},e})(),$0=(function(){function e(t,n){this._monotonicClock=n,this._epochMillis=t.now(),this._performanceMillis=n.now()}return e.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},e})(),_p=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},B0=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o};function j0(e){var t,n,r={};if(typeof e!="object"||e==null)return r;try{for(var i=_p(Object.entries(e)),o=i.next();!o.done;o=i.next()){var a=B0(o.value,2),s=a[0],u=a[1];if(!hp(s)){L.warn("Invalid attribute key: "+s);continue}if(!gp(u)){L.warn("Invalid attribute value set for key: "+s);continue}Array.isArray(u)?r[s]=u.slice():r[s]=u}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function hp(e){return typeof e=="string"&&e.length>0}function gp(e){return e==null?!0:Array.isArray(e)?F0(e):mp(e)}function F0(e){var t,n,r;try{for(var i=_p(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(a!=null){if(!r){if(mp(a)){r=typeof a;continue}return!1}if(typeof a!==r)return!1}}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!0}function mp(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function vp(){return function(e){L.error(H0(e))}}function H0(e){return typeof e=="string"?e:JSON.stringify(G0(e))}function G0(e){for(var t={},n=e;n!==null;
48)Object.getOwnPropertyNames(n).forEach(function(r){if(!t[r]){var i=n[r];i&&(t[r]=String(i))}}),n=Object.getPrototypeOf(n);return t}var Ep=vp();function V0(e){Ep=e}function Tp(e){try{Ep(e)}catch{}}var Ci;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(Ci||(Ci={}));var X0=",",z0=["OTEL_SDK_DISABLED"];function q0(e){return z0.indexOf(e)>-1}var K0=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function W0(e){return K0.indexOf(e)>-1}var Y0=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function J0(e){return Y0.indexOf(e)>-1}var ii=1/0,oi=128,Sp=128,yp=128,qs={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:k.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:ii,OTEL_ATTRIBUTE_COUNT_LIMIT:oi,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:ii,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:oi,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:ii,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:oi,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Sp,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:yp,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Ci.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Q0(e,t,n){if(!(typeof n[e]>"u")){var r=String(n[e]);t[e]=r.toLowerCase()==="true"}}function Z0(e,t,n,r,i){if(r===void 0&&(r=-1/0),i===void 0&&(i=1/0),typeof n[e]<"u"){var o=Number(n[e]);isNaN(o)||(o<r?t[e]=r:o>i?t[e]=i:t[e]=o)}}function eR(e,t,n,r){r===void 0&&(r=X0);var i=n[e];typeof i=="string"&&(t[e]=i.split(r).map(function(o){return o.trim()}))}var tR={ALL:k.ALL,VERBOSE:k.VERBOSE,DEBUG:k.DEBUG,INFO:k.INFO,WARN:k.WARN,ERROR:k.ERROR,NONE:k.NONE};function nR(e,t,n){var r=n[e];if(typeof r=="string"){var i=tR[r.toUpperCase()];i!=null&&(t[e]=i)}}function Ks(e){var t={};for(var n in qs){var r=n;switch(r){case"OTEL_LOG_LEVEL":nR(r,t,e);break;default:if(q0(r))Q0(r,t,e);else if(W0(r))Z0(r,t,e);else if(J0(r))eR(r,t,e);else{var i=e[r];typeof i<"u"&&i!==null&&(t[r]=String(i))}}}return t}var Ws=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{};function rR(){var e=Ks(Ws);return Object.assign({},qs,e)}function iR(){return Ks(Ws)}function Qc(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function bp(e){for(var t=new Uint8Array(e.length/2),n=0,r=0;r<e.length;r+=2){var i=Qc(e.charCodeAt(r)),o=Qc(e.charCodeAt(r+1));t[n++]=i<<4|o}return t}var oR=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},aR=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function sR(e){return btoa(String.fromCharCode.apply(String,aR([],oR(bp(e)),!1)))}var uR=8,cR=16,lR=(function(){function e(){this.generateTraceId=Zc(cR),this.generateSpanId=Zc(uR)}return e})(),Hr=Array(32);function Zc(e){return function(){for(var n=0;n<e*2;n++)Hr[n]=Math.floor(Math.random()*16)+48,Hr[n]>=58&&(Hr[n]+=39);return String.fromCharCode.apply(null,Hr.slice(0,e*2))}}var Mi=performance,Op="1.30.1",fR="process.runtime.name",dR="telemetry.sdk.name",pR="telemetry.sdk.language",_R="telemetry.sdk.version",hR=fR,gR=dR,mR=pR,vR=_R,ER="webjs",TR=ER,Kt,SR=(Kt={},Kt[gR]="opentelemetry",Kt[hR]="browser",Kt[mR]=TR,Kt[vR]=Op,Kt);function yR(e){}var Rp=9,bR=6,OR=Math.pow(10,bR),xi=Math.pow(10,Rp);function cr(e){var t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*OR);return[n,r]}function Ys(){var e=Mi.timeOrigin;if(typeof e!="number"){var t=Mi;e=t.timing&&t.timing.fetchStart}return e}function Ap(e){var t=cr(Ys()),n=cr(typeof e=="number"?e:Mi.now());return wp(t,n)}function RR(e){if(Js(e))return e;if(typeof e=="number")return e<Ys()?Ap(e):cr(e);
48if(e instanceof Date)return cr(e.getTime());throw TypeError("Invalid input type")}function AR(e,t){var n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=xi),[n,r]}function wR(e){var t=Rp,n=""+"0".repeat(t)+e[1]+"Z",r=n.substring(n.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",r)}function IR(e){return e[0]*xi+e[1]}function PR(e){return e[0]*1e3+e[1]/1e6}function LR(e){return e[0]*1e6+e[1]/1e3}function Js(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function NR(e){return Js(e)||typeof e=="number"||e instanceof Date}function wp(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=xi&&(n[1]-=xi,n[0]+=1),n}var Da;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Da||(Da={}));var CR=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},MR=(function(){function e(t){t===void 0&&(t={});var n;this._propagators=(n=t.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(function(r){return typeof r.fields=="function"?r.fields():[]}).reduce(function(r,i){return r.concat(i)},[])))}return e.prototype.inject=function(t,n,r){var i,o;try{for(var a=CR(this._propagators),s=a.next();!s.done;s=a.next()){var u=s.value;try{u.inject(t,n,r)}catch(c){L.warn("Failed to inject with "+u.constructor.name+". Err: "+c.message)}}}catch(c){i={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}},e.prototype.extract=function(t,n,r){return this._propagators.reduce(function(i,o){try{return o.extract(i,n,r)}catch(a){L.warn("Failed to extract with "+o.constructor.name+". Err: "+a.message)}return i},t)},e.prototype.fields=function(){return this._fields.slice()},e})(),ka="[_0-9a-z-*/]",xR="[a-z]"+ka+"{0,255}",DR="[a-z0-9]"+ka+"{0,240}@[a-z]"+ka+"{0,13}",kR=new RegExp("^(?:"+xR+"|"+DR+")$"),UR=/^[ -~]{0,255}[!-~]$/,$R=/,|=/;function BR(e){return kR.test(e)}function jR(e){return UR.test(e)&&!$R.test(e)}var el=32,FR=512,tl=",",nl="=",Ip=(function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,n){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r},e.prototype.unset=function(t){var n=this._clone();return n._internalState.delete(t),n},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(n,r){return n.push(r+nl+t.get(r)),n},[]).join(tl)},e.prototype._parse=function(t){t.length>FR||(this._internalState=t.split(tl).reverse().reduce(function(n,r){var i=r.trim(),o=i.indexOf(nl);if(o!==-1){var a=i.slice(0,o),s=i.slice(o+1,r.length);BR(a)&&jR(s)&&n.set(a,s)}return n},new Map),this._internalState.size>el&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,el))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e})(),ai="traceparent",si="tracestate",HR="00",GR="(?!ff)[\\da-f]{2}",VR="(?![0]{32})[\\da-f]{32}",XR="(?![0]{16})[\\da-f]{16}",zR="[\\da-f]{2}",qR=new RegExp("^\\s?("+GR+")-("+VR+")-("+XR+")-("+zR+")(-.*)?\\s?$");function Pp(e){var t=qR.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var KR=(function(){function e(){}return e.prototype.inject=function(t,n,r){var i=K.getSpanContext(t);if(!(!i||Xs(t)||!Xt(i))){var o=HR+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||Te.NONE).toString(16);r.set(n,ai,o),i.traceState&&r.set(n,si,i.traceState.serialize())}},e.prototype.extract=function(t,n,r){var i=r.get(n,ai);if(!i)return t;var o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return t;var a=Pp(o);if(!a)return t;a.isRemote=!0;var s=r.get(n,si);if(s){var u=Array.isArray(s)?s.join(","):s;a.traceState=new Ip(typeof u=="string"?u:void 0)}return K.setSpanContext(t,a)},e.prototype.fields=function(){return[ai,si]},e})(),Qs=An("OpenTelemetry SDK Context Key RPC_METADATA"),Ua;(function(e){e.HTTP="http"})(Ua||(Ua={}));function WR(e,t){return e.setValue(Qs,t)}function YR(e){return e.deleteValue(Qs)}function JR(e){return e.getValue(Qs)}var $a=(function(){function e(){}return e.prototype.shouldSample=function(){return{decision:St.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e})(),ui=(function(){function e(){}return e.prototype.shouldSample=function(){return{decision:St.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e})(),QR=(function(){function e(t){var n,r,i,o;this._root=t.root,this._root||(Tp(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new ui),this._remoteParentSampled=(n=t.remoteParentSampled)!==null&&n!==void 0?n:new ui,this._remoteParentNotSampled=(r=t.remoteParentNotSampled)!==null&&r!==void 0?r:new $a,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new ui,this._localParentNotSampled=(o=t.localParentNotSampled)!==null&&o!==void 0?o:new $a}return e.prototype.shouldSample=function(t,n,r,i,o,a){var s=K.get
48SpanContext(t);return!s||!Xt(s)?this._root.shouldSample(t,n,r,i,o,a):s.isRemote?s.traceFlags&Te.SAMPLED?this._remoteParentSampled.shouldSample(t,n,r,i,o,a):this._remoteParentNotSampled.shouldSample(t,n,r,i,o,a):s.traceFlags&Te.SAMPLED?this._localParentSampled.shouldSample(t,n,r,i,o,a):this._localParentNotSampled.shouldSample(t,n,r,i,o,a)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e})(),ZR=(function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}return e.prototype.shouldSample=function(t,n){return{decision:Bs(n)&&this._accumulate(n)<this._upperBound?St.RECORD_AND_SAMPLED:St.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var n=0,r=0;r<t.length/8;r++){var i=r*8,o=parseInt(t.slice(i,i+8),16);n=(n^o)>>>0}return n},e})(),eA="[object Object]",tA="[object Null]",nA="[object Undefined]",rA=Function.prototype,Lp=rA.toString,iA=Lp.call(Object),oA=aA(Object.getPrototypeOf,Object),Np=Object.prototype,Cp=Np.hasOwnProperty,wt=Symbol?Symbol.toStringTag:void 0,Mp=Np.toString;function aA(e,t){return function(n){return e(t(n))}}function rl(e){if(!sA(e)||uA(e)!==eA)return!1;var t=oA(e);if(t===null)return!0;var n=Cp.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Lp.call(n)===iA}function sA(e){return e!=null&&typeof e=="object"}function uA(e){return e==null?e===void 0?nA:tA:wt&&wt in Object(e)?cA(e):lA(e)}function cA(e){var t=Cp.call(e,wt),n=e[wt],r=!1;try{e[wt]=void 0,r=!0}catch{}var i=Mp.call(e);return r&&(t?e[wt]=n:delete e[wt]),i}function lA(e){return Mp.call(e)}var fA=20;function dA(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.shift(),r=new WeakMap;e.length>0;)n=xp(n,e.shift(),0,r);return n}function Wo(e){return Di(e)?e.slice():e}function xp(e,t,n,r){n===void 0&&(n=0);var i;if(!(n>fA)){if(n++,ci(e)||ci(t)||Dp(t))i=Wo(t);else if(Di(e)){if(i=e.slice(),Di(t))for(var o=0,a=t.length;o<a;o++)i.push(Wo(t[o]));else if(Un(t))for(var s=Object.keys(t),o=0,a=s.length;o<a;o++){var u=s[o];i[u]=Wo(t[u])}}else if(Un(e))if(Un(t)){if(!pA(e,t))return t;i=Object.assign({},e);for(var s=Object.keys(t),o=0,a=s.length;o<a;o++){var u=s[o],c=t[u];if(ci(c))typeof c>"u"?delete i[u]:i[u]=c;else{var l=i[u],d=c;if(il(e,u,r)||il(t,u,r))delete i[u];else{if(Un(l)&&Un(d)){var f=r.get(l)||[],p=r.get(d)||[];f.push({obj:e,key:u}),p.push({obj:t,key:u}),r.set(l,f),r.set(d,p)}i[u]=xp(i[u],c,n,r)}}}}else i=t;return i}}function il(e,t,n){for(var r=n.get(e[t])||[],i=0,o=r.length;i<o;i++){var a=r[i];if(a.key===t&&a.obj===e)return!0}return!1}function Di(e){return Array.isArray(e)}function Dp(e){return typeof e=="function"}function Un(e){return!ci(e)&&!Di(e)&&!Dp(e)&&typeof e=="object"}function ci(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function pA(e,t){return!(!rl(e)||!rl(t))}var _A=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),kp=(function(e){_A(t,e);function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return t})(Error);function hA(e,t){var n,r=new Promise(function(o,a){n=setTimeout(function(){a(new kp("Operation timed out."))},t)});return Promise.race([e,r]).then(function(i){return clearTimeout(n),i},function(i){throw clearTimeout(n),i})}var gA=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
48if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Up(e,t){return typeof t=="string"?e===t:!!e.match(t)}function mA(e,t){var n,r;if(!t)return!1;try{for(var i=gA(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(Up(e,a))return!0}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}function vA(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var EA=(function(){function e(){var t=this;this._promise=new Promise(function(n,r){t._resolve=n,t._reject=r})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e})(),TA=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},SA=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},yA=(function(){function e(t,n){this._callback=t,this._that=n,this._isCalled=!1,this._deferred=new EA}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,SA([this._that],TA(r),!1))).then(function(o){return n._deferred.resolve(o)},function(o){return n._deferred.reject(o)})}catch(o){this._deferred.reject(o)}}return this._deferred.promise},e})();function bA(e,t){return new Promise(function(n){q.with(fp(q.active()),function(){e.export(t,function(r){n(r)})})})}var OA={getKeyPairs:pp,serializeKeyPairs:dp,parseKeyPairsIntoRecord:k0,parsePairKeyValue:zs},RA={_export:bA};const AA=Object.freeze(Object.defineProperty({__proto__:null,AlwaysOffSampler:$a,AlwaysOnSampler:ui,AnchoredClock:$0,BindOnceFuture:yA,CompositePropagator:MR,DEFAULT_ATTRIBUTE_COUNT_LIMIT:oi,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:ii,DEFAULT_ENVIRONMENT:qs,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Sp,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:yp,get ExportResultCode(){return Da},ParentBasedSampler:QR,get RPCType(){return Ua},RandomIdGenerator:lR,SDK_INFO:SR,TRACE_PARENT_HEADER:ai,TRACE_STATE_HEADER:si,TimeoutError:kp,TraceIdRatioBasedSampler:ZR,TraceState:Ip,get TracesSamplerValues(){return Ci},VERSION:Op,W3CBaggagePropagator:U0,W3CTraceContextPropagator:KR,_globalThis:Ws,addHrTimes:wp,baggageUtils:OA,callWithTimeout:hA,deleteRPCMetadata:YR,getEnv:rR,getEnvWithoutDefaults:iR,getRPCMetadata:JR,getTimeOrigin:Ys,globalErrorHandler:Tp,hexToBase64:sR,hexToBinary:bp,hrTime:Ap,hrTimeDuration:AR,hrTimeToMicroseconds:LR,hrTimeToMilliseconds:PR,hrTimeToNanoseconds:IR,hrTimeToTimeStamp:wR,internal:RA,isAttributeKey:hp,isAttributeValue:gp,isTimeInput:NR,isTimeInputHrTime:Js,isTracingSuppressed:Xs,isUrlIgnored:mA,isWrapped:vA,loggingErrorHandler:vp,merge:dA,millisToHrTime:cr,otperformance:Mi,parseEnvironment:Ks,parseTraceParent:Pp,sanitizeAttributes:j0,setGlobalErrorHandler:V0,setRPCMetadata:WR,suppressTracing:fp,timeInputToHrTime:RR,unrefTimer:yR,unsuppressTracing:L0,urlMatches:Up},Symbol.toStringTag,{value:"Module"})),wA=Vi(AA);Object.defineProperty(me,"__esModule",{value:!0});var $p=me.getOtlpEncoder=Vp=me.encodeAsString=Hp=me.encodeAsLongBits=Fp=me.toLongBits=Bp=me.hrTimeToNanos=void 0;const po=wA;function Zs(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}var Bp=me.hrTimeToNanos=Zs;function jp(e){const t=Number(BigInt.asUintN(32,e)),n=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:n}}var Fp=me.toLongBits=jp;function eu(e){const t=Zs(e);return jp(t)}var Hp=me.encodeAsLongBits=eu;function Gp(e){return Zs(e).toString()}var Vp=me.encodeAsString=Gp;const IA=typeof BigInt<"u"?Gp:po.hrTimeToNanoseconds;function ol(e){return e}function Xp(e){if(e!==void 0)return(0,po.hexToBinary)(e)}const PA={encodeHrTime:eu,encodeSpanContext:po.hexToBinary,encodeOptionalSpanContext:Xp};function LA(e){var t,n;if(e===void 0)return PA;const r=(t=e.useLongBits)!==null&&t!==void 0?t:!0,i=(n=e.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:r?eu:IA,encodeSpanContext:i?ol:po.hexToBinary,encodeOptionalSpanContext:i?ol:Xp}}$p=me.getOtlpEncoder=LA;const NA=tf({__proto__:null,default:me,get encodeAsLongBits(){return Hp},get encodeAsString(){return Vp},get getOtlpEncoder(){return $p},get hrTimeToNanos(){return Bp},get toLongBits(){return Fp}},[me]),CA=Vi(NA);
48Object.defineProperty(Qe,"__esModule",{value:!0});var zp=Qe.createExportTraceServiceRequest=Qe.toOtlpSpanEvent=Qe.toOtlpLink=Qe.sdkSpanToOtlpSpan=void 0;const lr=P0,MA=CA;function qp(e,t){var n;const r=e.spanContext(),i=e.status;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:(n=r.traceState)===null||n===void 0?void 0:n.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:(0,lr.toAttributes)(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(o=>Wp(o,t)),droppedEventsCount:e.droppedEventsCount,status:{code:i.code,message:i.message},links:e.links.map(o=>Kp(o,t)),droppedLinksCount:e.droppedLinksCount}}Qe.sdkSpanToOtlpSpan=qp;function Kp(e,t){var n;return{attributes:e.attributes?(0,lr.toAttributes)(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:(n=e.context.traceState)===null||n===void 0?void 0:n.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}Qe.toOtlpLink=Kp;function Wp(e,t){return{attributes:e.attributes?(0,lr.toAttributes)(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}Qe.toOtlpSpanEvent=Wp;function xA(e,t){const n=(0,MA.getOtlpEncoder)(t);return{resourceSpans:kA(e,n)}}zp=Qe.createExportTraceServiceRequest=xA;function DA(e){const t=new Map;for(const n of e){let r=t.get(n.resource);r||(r=new Map,t.set(n.resource,r));const i=`${n.instrumentationLibrary.name}@${n.instrumentationLibrary.version||""}:${n.instrumentationLibrary.schemaUrl||""}`;let o=r.get(i);o||(o=[],r.set(i,o)),o.push(n)}return t}function kA(e,t){const n=DA(e),r=[],i=n.entries();let o=i.next();for(;!o.done;){const[a,s]=o.value,u=[],c=s.values();let l=c.next();for(;!l.done;){const f=l.value;if(f.length>0){const p=f.map(_=>qp(_,t));u.push({scope:(0,lr.createInstrumentationScope)(f[0].instrumentationLibrary),spans:p,schemaUrl:f[0].instrumentationLibrary.schemaUrl})}l=c.next()}const d={resource:(0,lr.createResource)(a),scopeSpans:u,schemaUrl:void 0};r.push(d),o=i.next()}return r}var Yp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ESpanKind=void 0,(function(t){t[t.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",t[t.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",t[t.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",t[t.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",t[t.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",t[t.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"})(e.ESpanKind||(e.ESpanKind={}))})(Yp);const UA="duration_ns";function $A(e=[]){var t,n;for(const r of e){const{scopeSpans:i}=r;for(const o of i){const{scope:a,spans:s=[]}=o;for(const u of s){if(u.kind!==Yp.ESpanKind.SPAN_KIND_CLIENT)continue;const c={traceId:u.traceId.toString(),spanId:u.spanId.toString()},l={};for(const p of u.attributes)l[p.key]=String(Object.values(p.value)[0]);!Number.isNaN(u.endTimeUnixNano)&&!Number.isNaN(u.startTimeUnixNano)&&(l[UA]=String(Number(u.endTimeUnixNano)-Number(u.startTimeUnixNano)));const d=((t=a?.name)!==null&&t!==void 0?t:"").indexOf("-");let f=he;a?.name&&(d===-1&&(f=(n=a.name.split("/")[1])!==null&&n!==void 0?n:a.name),d>-1&&(f=a?.name.substring(d+1))),V.api.pushEvent(`faro.tracing.${f}`,l,void 0,{spanContext:c,timestampOverwriteMs:Number(u.endTimeUnixNano)/1e6,customPayloadTransformer:p=>{var _,h;return l["faro.action.user.name"]!=null&&l["faro.action.user.parentId"]!=null&&(p.action={name:l["faro.action.user.name"],parentId:l["faro.action.user.parentId"]},(_=p.attributes)===null||_===void 0||delete _["faro.action.user.name"],(h=p.attributes)===null||h===void 0||delete h["faro.action.user.parentId"]),p}})}}}}class BA{constructor(t){this.config=t}export(t,n){const r=zp(t,{useHex:!0,useLongBits:!1});this.config.api.pushTraces(r),$A(r.resourceSpans),n({code:Ca.SUCCESS})}shutdown(){return Promise.resolve(void 0)}}const jA="deployment.environment.name",FA="service.name",HA="service.namespace",GA="service.version",VA="session.id";var Jp=(function(){function e(){}return e.prototype.emit=function(t){},e})(),XA=new Jp,zA=(function(){function e(){}return e.prototype.getLogger=function(t,n,r){return new Jp},e})(),Qp=new zA,qA=(function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.emit=function(t){this._getLogger().emit(t)},e.prototype._getLogger=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):XA},e})(),al=(function(){function e(){}return e.prototype.getLogger=function(t,n,r){var i;return(i=this.getDelegateLogger(t,n,r))!==null&&i!==void 0?i:new qA(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Qp},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateLogger=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(t,n,r)},e})(),KA=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},Gr=Symbol.for("io.opentelemetry.js.api.logs"),$n=KA;function WA(e,t,n){return function(r){return r===e?t:n}}var sl=1,YA=(function(){function e(){this._proxyLoggerProvider=new al}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return $n[Gr]?this.getLoggerProvider():($n[Gr]=WA(sl,t,Qp),this._proxyLoggerProvider.setDelegate(t),t)},e.prototype.getLoggerProvider=function(){var t,n;return(n=(t=$n[Gr])===null||t===void 0?void 0:t.call($n,sl))!==null&&n!==void 0?n:this._proxyLoggerProvider},e.prototype.getLogger=function(t,n,r){return this.getLoggerProvider().getLogger(t,n,r)},e.prototype.disable=function(){delete $n[Gr],this._proxyLoggerProvider=new al},e})(),JA=YA.getInstance();function Ba(e){return typeof e=="function"}var ae=console.error.bind(console);function Bn(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function Ir(e){e&&e.logger&&(Ba(e.logger)?ae=e.logger:ae("new logger isn't a function, not replacing"))}function Zp(e,t,n){if(!e||!e[t]){ae("no original function "+t+" to wrap");return}if(!n){ae("no wrapper function"),ae(new Error().stack);return}if(!Ba(e[t])||!Ba(n)){ae("original object and wrapper must be functions");return}var r=e[t],i=n(r,t);return Bn(i,"__original",r),Bn(i,"__unwrap",function(){e[t]===i&&Bn(e,t,r)}),Bn(i,"__wrapped",!0),Bn(e,t,i),i}function QA(e,t,n){if(e)Array.isArray(e)||(e=[e]);else{ae("must provide one or more modules to patch"),ae(new Error().stack);return}if(!(t&&Array.isArray(t))){ae("must provide one or more functions to wrap on modules");return}e.forEach(function(r){t.forEach(function(i){Zp(r,i,n)})})}function e_(e,t){if(!e||!e[t]){ae("no function to unwrap."),ae(new Error().stack);return}if(!e[t].__unwrap)ae("no original to unwrap to -- has "+t+" already been unwrapped?");else return e[t].__unwrap()}function ZA(e,t){if(e)Array.isArray(e)||(e=[e]);else{ae("must provide one or more modules to patch"),ae(new Error().stack);return}if(!(t&&Array.isArray(t))){ae("must provide one or more functions to unwrap on modules");return}e.forEach(function(n){t.forEach(function(r){e_(n,r)})})}Ir.wrap=Zp;Ir.massWrap=QA;Ir.unwrap=e_;Ir.massUnwrap=ZA;var pt=Ir,ja=function(){return ja=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ja.apply(this,arguments)},ew=(function(){function e(t,n,r){this.instrumentationName=t,this.instrumentationVersion=n,this._config={},this._wrap=pt.wrap,this._unwrap=pt.unwrap,this._massWrap=pt.massWrap,this._massUnwrap=pt.massUnwrap,this.setConfig(r),this._diag=L.createComponentLogger({namespace:t}),this._tracer=K.getTracer(t,n),this._meter=js.getMeter(t,n),this._logger=JA.getLogger(t,n),this._updateMetricInstruments()}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter}
48,enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)},e.prototype.getModuleDefinitions=function(){var t,n=(t=this.init())!==null&&t!==void 0?t:[];return Array.isArray(n)?n:[n]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(t){this._config=ja({enabled:!0},t)},e.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e.prototype._runSpanCustomizationHook=function(t,n,r,i){if(t)try{t(r,i)}catch(o){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},o)}},e})(),tw=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),nw=(function(e){tw(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o._config.enabled&&o.enable(),o}return t})(ew);function rw(e,t,n){var r,i;try{i=e()}catch(o){r=o}finally{return t(r,i),i}}function iw(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var Yo=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},Fa=performance,ow="http.method",aw="http.url",sw="http.host",uw="http.scheme",cw="http.status_code",lw="http.user_agent",fw="http.request_content_length_uncompressed",dw=ow,pw=aw,_w=sw,hw=uw,gw=cw,mw=lw,vw=fw,Ew=9,Tw=6,Sw=Math.pow(10,Tw),ul=Math.pow(10,Ew);function Ha(e){var t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*Sw);return[n,r]}function yw(){var e=Fa.timeOrigin;if(typeof e!="number"){var t=Fa;e=t.timing&&t.timing.fetchStart}return e}function cl(e){var t=Ha(yw()),n=Ha(Fa.now());return bw(t,n)}function bw(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=ul&&(n[1]-=ul,n[0]+=1),n}var Ow=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Rw(e,t){return typeof t=="string"?e===t:!!e.match(t)}function Aw(e,t){var n,r;if(!t)return!1;try{for(var i=Ow(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(Rw(e,a))return!0}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}var t_=An("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function ww(e){return e.setValue(t_,!0)}function tu(e){return e.getValue(t_)===!0}var Iw="=",Ga=";",Va=",",Jo="baggage",Pw=180,Lw=4096,Nw=8192,Cw=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o};function Mw(e){return e.reduce(function(t,n){var r=""+t+(t!==""?Va:"")+n;return r.length>Nw?t:r},"")}function xw(e){return e.getAllEntries().map(function(t){var n=Cw(t,2),r=n[0],i=n[1],o=encodeURIComponent(r)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(o+=Ga+i.metadata.toString()),o})}function Dw(e){var t=e.split(Ga);if(!(t.length<=0)){var n=t.shift();if(n){var r=n.indexOf(Iw);if(!(r<=0)){var i=decodeURIComponent(n.substring(0,r).trim()),o=decodeURIComponent(n.substring(r+1).trim()),a;return t.length>0&&(a=Jd(t.join(Ga))),{key:i,value:o,metadata:a}}}}}var kw=(function(){function e(){}return e.prototype.inject=function(t,n,r){var i=le.getBaggage(t);if(!(!i||tu(t))){var o=xw(i).filter(function(s){return s.length<=Lw}).slice(0,Pw),a=Mw(o);a.length>0&&r.set(n,Jo,a)}},e.prototype.extract=function(t,n,r){var i=r.get(n,Jo),o=Array.isArray(i)?i.join(Va):i;
48if(!o)return t;var a={};if(o.length===0)return t;var s=o.split(Va);return s.forEach(function(u){var c=Dw(u);if(c){var l={value:c.value};c.metadata&&(l.metadata=c.metadata),a[c.key]=l}}),Object.entries(a).length===0?t:le.setBaggage(t,le.createBaggage(a))},e.prototype.fields=function(){return[Jo]},e})(),n_=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Uw=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o};function li(e){var t,n,r={};if(typeof e!="object"||e==null)return r;try{for(var i=n_(Object.entries(e)),o=i.next();!o.done;o=i.next()){var a=Uw(o.value,2),s=a[0],u=a[1];if(!$w(s)){L.warn("Invalid attribute key: "+s);continue}if(!r_(u)){L.warn("Invalid attribute value set for key: "+s);continue}Array.isArray(u)?r[s]=u.slice():r[s]=u}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function $w(e){return typeof e=="string"&&e.length>0}function r_(e){return e==null?!0:Array.isArray(e)?Bw(e):i_(e)}function Bw(e){var t,n,r;try{for(var i=n_(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(a!=null){if(!r){if(i_(a)){r=typeof a;continue}return!1}if(typeof a!==r)return!1}}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!0}function i_(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function jw(){return function(e){L.error(Fw(e))}}function Fw(e){return typeof e=="string"?e:JSON.stringify(Hw(e))}function Hw(e){for(var t={},n=e;n!==null;)Object.getOwnPropertyNames(n).forEach(function(r){if(!t[r]){var i=n[r];i&&(t[r]=String(i))}}),n=Object.getPrototypeOf(n);return t}var Gw=jw();function _n(e){try{Gw(e)}catch{}}var Be;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(Be||(Be={}));var Vw=",",Xw=["OTEL_SDK_DISABLED"];function zw(e){return Xw.indexOf(e)>-1}var qw=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Kw(e){return qw.indexOf(e)>-1}var Ww=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function Yw(e){return Ww.indexOf(e)>-1}var fi=1/0,di=128,Jw=128,Qw=128,o_={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/s
48pans",OTEL_LOG_LEVEL:k.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:fi,OTEL_ATTRIBUTE_COUNT_LIMIT:di,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:fi,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:di,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:fi,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:di,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Jw,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Qw,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Be.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Zw(e,t,n){if(!(typeof n[e]>"u")){var r=String(n[e]);t[e]=r.toLowerCase()==="true"}}function eI(e,t,n,r,i){if(r===void 0&&(r=-1/0),i===void 0&&(i=1/0),typeof n[e]<"u"){var o=Number(n[e]);isNaN(o)||(o<r?t[e]=r:o>i?t[e]=i:t[e]=o)}}function tI(e,t,n,r){r===void 0&&(r=Vw);var i=n[e];typeof i=="string"&&(t[e]=i.split(r).map(function(o){return o.trim()}))}var nI={ALL:k.ALL,VERBOSE:k.VERBOSE,DEBUG:k.DEBUG,INFO:k.INFO,WARN:k.WARN,ERROR:k.ERROR,NONE:k.NONE};function rI(e,t,n){var r=n[e];if(typeof r=="string"){var i=nI[r.toUpperCase()];i!=null&&(t[e]=i)}}function a_(e){var t={};for(var n in o_){var r=n;switch(r){case"OTEL_LOG_LEVEL":rI(r,t,e);break;default:if(zw(r))Zw(r,t,e);else if(Kw(r))eI(r,t,e);else if(Yw(r))tI(r,t,e);else{var i=e[r];typeof i<"u"&&i!==null&&(t[r]=String(i))}}}return t}var s_=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{};function fr(){var e=a_(s_);return Object.assign({},o_,e)}function iI(){return a_(s_)}var an=performance,oI="1.30.1",aI="exception.type",sI="exception.message",uI="exception.stacktrace",cI="http.response_content_length",lI="http.response_content_length_uncompressed",Qo=aI,Zo=sI,fI=uI,dI=cI,pI=lI,_I="process.runtime.name",hI="service.name",gI="telemetry.sdk.name",mI="telemetry.sdk.language",vI="telemetry.sdk.version",EI=_I,TI=hI,Xa=gI,za=mI,qa=vI,SI="webjs",yI=SI,Wt,ea=(Wt={},Wt[Xa]="opentelemetry",Wt[EI]="browser",Wt[za]=yI,Wt[qa]=oI,Wt);var bI=9,OI=6,RI=Math.pow(10,OI),ki=Math.pow(10,bI);function _t(e){var t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*RI);return[n,r]}function nu(){var e=an.timeOrigin;if(typeof e!="number"){var t=an;e=t.timing&&t.timing.fetchStart}return e}function u_(e){var t=_t(nu()),n=_t(typeof e=="number"?e:an.now());return c_(t,n)}function Zn(e){if(ru(e))return e;if(typeof e=="number")return e<nu()?u_(e):_t(e);if(e instanceof Date)return _t(e.getTime());throw TypeError("Invalid input type")}function AI(e,t){var n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=ki),[n,r]}function ht(e){return e[0]*ki+e[1]}function ru(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function ll(e){return ru(e)||typeof e=="number"||e instanceof Date}function c_(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=ki&&(n[1]-=ki,n[0]+=1),n}var Ka;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Ka||(Ka={}));var wI=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
48if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},II=(function(){function e(t){t===void 0&&(t={});var n;this._propagators=(n=t.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(function(r){return typeof r.fields=="function"?r.fields():[]}).reduce(function(r,i){return r.concat(i)},[])))}return e.prototype.inject=function(t,n,r){var i,o;try{for(var a=wI(this._propagators),s=a.next();!s.done;s=a.next()){var u=s.value;try{u.inject(t,n,r)}catch(c){L.warn("Failed to inject with "+u.constructor.name+". Err: "+c.message)}}}catch(c){i={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}},e.prototype.extract=function(t,n,r){return this._propagators.reduce(function(i,o){try{return o.extract(i,n,r)}catch(a){L.warn("Failed to extract with "+o.constructor.name+". Err: "+a.message)}return i},t)},e.prototype.fields=function(){return this._fields.slice()},e})(),Wa="[_0-9a-z-*/]",PI="[a-z]"+Wa+"{0,255}",LI="[a-z0-9]"+Wa+"{0,240}@[a-z]"+Wa+"{0,13}",NI=new RegExp("^(?:"+PI+"|"+LI+")$"),CI=/^[ -~]{0,255}[!-~]$/,MI=/,|=/;function xI(e){return NI.test(e)}function DI(e){return CI.test(e)&&!MI.test(e)}var fl=32,kI=512,dl=",",pl="=",UI=(function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,n){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r},e.prototype.unset=function(t){var n=this._clone();return n._internalState.delete(t),n},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(n,r){return n.push(r+pl+t.get(r)),n},[]).join(dl)},e.prototype._parse=function(t){t.length>kI||(this._internalState=t.split(dl).reverse().reduce(function(n,r){var i=r.trim(),o=i.indexOf(pl);if(o!==-1){var a=i.slice(0,o),s=i.slice(o+1,r.length);xI(a)&&DI(s)&&n.set(a,s)}return n},new Map),this._internalState.size>fl&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,fl))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e})(),ta="traceparent",na="tracestate",$I="00",BI="(?!ff)[\\da-f]{2}",jI="(?![0]{32})[\\da-f]{32}",FI="(?![0]{16})[\\da-f]{16}",HI="[\\da-f]{2}",GI=new RegExp("^\\s?("+BI+")-("+jI+")-("+FI+")-("+HI+")(-.*)?\\s?$");function VI(e){var t=GI.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var XI=(function(){function e(){}return e.prototype.inject=function(t,n,r){var i=K.getSpanContext(t);if(!(!i||tu(t)||!Xt(i))){var o=$I+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||Te.NONE).toString(16);r.set(n,ta,o),i.traceState&&r.set(n,na,i.traceState.serialize())}},e.prototype.extract=function(t,n,r){var i=r.get(n,ta);if(!i)return t;var o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return t;var a=VI(o);if(!a)return t;a.isRemote=!0;var s=r.get(n,na);if(s){var u=Array.isArray(s)?s.join(","):s;a.traceState=new UI(typeof u=="string"?u:void 0)}return K.setSpanContext(t,a)},e.prototype.fields=function(){return[ta,na]},e})(),zI="[object Object]",qI="[object Null]",KI="[object Undefined]",WI=Function.prototype,l_=WI.toString,YI=l_.call(Object),JI=QI(Object.getPrototypeOf,Object),f_=Object.prototype,d_=f_.hasOwnProperty,It=Symbol?Symbol.toStringTag:void 0,p_=f_.toString;function QI(e,t){return function(n){return e(t(n))}}function _l(e){if(!ZI(e)||eP(e)!==zI)return!1;var t=JI(e);if(t===null)return!0;var n=d_.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&l_.call(n)===YI}function ZI(e){return e!=null&&typeof e=="object"}function eP(e){return e==null?e===void 0?KI:qI:It&&It in Object(e)?tP(e):nP(e)}function tP(e){var t=d_.call(e,It),n=e[It],r=!1;try{e[It]=void 0,r=!0}catch{}var i=p_.call(e);return r&&(t?e[It]=n:delete e[It]),i}function nP(e){return p_.call(e)}var rP=20;function iP(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.shift(),r=new WeakMap;e.length>0;
48)n=__(n,e.shift(),0,r);return n}function ra(e){return Ui(e)?e.slice():e}function __(e,t,n,r){n===void 0&&(n=0);var i;if(!(n>rP)){if(n++,pi(e)||pi(t)||h_(t))i=ra(t);else if(Ui(e)){if(i=e.slice(),Ui(t))for(var o=0,a=t.length;o<a;o++)i.push(ra(t[o]));else if(jn(t))for(var s=Object.keys(t),o=0,a=s.length;o<a;o++){var u=s[o];i[u]=ra(t[u])}}else if(jn(e))if(jn(t)){if(!oP(e,t))return t;i=Object.assign({},e);for(var s=Object.keys(t),o=0,a=s.length;o<a;o++){var u=s[o],c=t[u];if(pi(c))typeof c>"u"?delete i[u]:i[u]=c;else{var l=i[u],d=c;if(hl(e,u,r)||hl(t,u,r))delete i[u];else{if(jn(l)&&jn(d)){var f=r.get(l)||[],p=r.get(d)||[];f.push({obj:e,key:u}),p.push({obj:t,key:u}),r.set(l,f),r.set(d,p)}i[u]=__(i[u],c,n,r)}}}}else i=t;return i}}function hl(e,t,n){for(var r=n.get(e[t])||[],i=0,o=r.length;i<o;i++){var a=r[i];if(a.key===t&&a.obj===e)return!0}return!1}function Ui(e){return Array.isArray(e)}function h_(e){return typeof e=="function"}function jn(e){return!pi(e)&&!Ui(e)&&!h_(e)&&typeof e=="object"}function pi(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function oP(e,t){return!(!_l(e)||!_l(t))}function aP(e,t){return typeof t=="string"?e===t:!!e.match(t)}var sP=(function(){function e(){var t=this;this._promise=new Promise(function(n,r){t._resolve=n,t._reject=r})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e})(),uP=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},cP=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},lP=(function(){function e(t,n){this._callback=t,this._that=n,this._isCalled=!1,this._deferred=new sP}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,cP([this._that],uP(r),!1))).then(function(o){return n._deferred.resolve(o)},function(o){return n._deferred.reject(o)})}catch(o){this._deferred.reject(o)}}return this._deferred.promise},e})(),fP="exception",Ya=function(){return Ya=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ya.apply(this,arguments)},dP=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},gl=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},pP=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},_P=(function(){function e(t,n,r,i,o,a,s,u,c,l){s===void 0&&(s=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:Li.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=r,this._spanContext=i,this.parentSpanId=a,this.kind=o,this.links=s;var d=Date.now();this._performanceStartTime=an.now(),this._performanceOffset=d-(this._performanceStartTime+nu()),this._startTimeProvided=u!=null,this.startTime=this._getTime(u??d),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,l!=null&&this.setAttributes(l),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,n)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return n==null||this._isSpanEnded()?this:t.length===0?(L.warn("Invalid attribute key: "+t),this):r_(n)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(n),this):(L.warn("Invalid attribute value set for key: "+t),this)},e.prototype.setAttributes=function(t){var n,r;try{for(var i=dP(Object.entries(t)),o=i.next();!o.done;o=i.next()){var a=gl(o.value,2),s=a[0],u=a[1];this.setAttribute(s,u)}}catch(c){n={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.addEvent=function(t,n,r){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return L.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&L.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),ll(n)&&(ll(r)||(r=n),n=void 0);var i=li(n);return this.events.push({name:t,attributes:i,time:this._getTime(r),droppedAttributesCount:0}),this},e.prototype.addLink=function(t){return this.links.push(t),this},e.prototype.addLinks=function(t){var n;return(n=this.links).push.apply(n,pP([],gl(t),!1)),this},e.prototype.setStatus=function(t){return this._isSpanEnded()?this:(this.status=Ya({},t),this.status.message!=null&&typeof t.message!="string"&&(L.warn("Dropping invalid status.message of type '"+typeof t.message+"', expected 'string'"),delete this.status.message),this)},e.prototype.updateName=function(t){return this._isSpanEnded()?this:(this.name=t,this)},e.prototype.end=function(t){if(this._isSpanEnded()){L.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(t),this._duration=AI(this.startTime,this.endTime),this._duration[0]<0&&(L.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&L.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},e.prototype._getTime=function(t){if(typeof t=="number"&&t<=an.now())return u_(t+this._performanceOffset);if(typeof t=="number")return _t(t);if(t instanceof Date)return _t(t.getTime());if(ru(t))return t;if(this._startTimeProvided)return _t(Date.now());var n=an.now()-this._performanceStartTime;return c_(this.startTime,_t(n))},e.prototype.isRecording=function(){return this._ended===!1}
48,e.prototype.recordException=function(t,n){var r={};typeof t=="string"?r[Zo]=t:t&&(t.code?r[Qo]=t.code.toString():t.name&&(r[Qo]=t.name),t.message&&(r[Zo]=t.message),t.stack&&(r[fI]=t.stack)),r[Qo]||r[Zo]?this.addEvent(fP,r,n):L.warn("Failed to record an exception "+t)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&L.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(t,n){return t.length<=n?t:t.substring(0,n)},e.prototype._truncateToSize=function(t){var n=this,r=this._attributeValueLengthLimit;return r<=0?(L.warn("Attribute value limit must be positive, got "+r),t):typeof t=="string"?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(function(i){return typeof i=="string"?n._truncateToLimitUtil(i,r):i}):t},e})(),yt;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(yt||(yt={}));var $i=(function(){function e(){}return e.prototype.shouldSample=function(){return{decision:yt.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e})(),sn=(function(){function e(){}return e.prototype.shouldSample=function(){return{decision:yt.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e})(),ia=(function(){function e(t){var n,r,i,o;this._root=t.root,this._root||(_n(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new sn),this._remoteParentSampled=(n=t.remoteParentSampled)!==null&&n!==void 0?n:new sn,this._remoteParentNotSampled=(r=t.remoteParentNotSampled)!==null&&r!==void 0?r:new $i,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new sn,this._localParentNotSampled=(o=t.localParentNotSampled)!==null&&o!==void 0?o:new $i}return e.prototype.shouldSample=function(t,n,r,i,o,a){var s=K.getSpanContext(t);return!s||!Xt(s)?this._root.shouldSample(t,n,r,i,o,a):s.isRemote?s.traceFlags&Te.SAMPLED?this._remoteParentSampled.shouldSample(t,n,r,i,o,a):this._remoteParentNotSampled.shouldSample(t,n,r,i,o,a):s.traceFlags&Te.SAMPLED?this._localParentSampled.shouldSample(t,n,r,i,o,a):this._localParentNotSampled.shouldSample(t,n,r,i,o,a)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e})(),ml=(function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}return e.prototype.shouldSample=function(t,n){return{decision:Bs(n)&&this._accumulate(n)<this._upperBound?yt.RECORD_AND_SAMPLED:yt.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var n=0,r=0;r<t.length/8;r++){var i=r*8,o=parseInt(t.slice(i,i+8),16);n=(n^o)>>>0}return n},e})(),hP=Be.AlwaysOn,Yt=1;function g_(){var e=fr();return{sampler:m_(e),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:e.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:e.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:e.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:e.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}
48,mergeResourceWithDefaults:!0}}function m_(e){switch(e===void 0&&(e=fr()),e.OTEL_TRACES_SAMPLER){case Be.AlwaysOn:return new sn;case Be.AlwaysOff:return new $i;case Be.ParentBasedAlwaysOn:return new ia({root:new sn});case Be.ParentBasedAlwaysOff:return new ia({root:new $i});case Be.TraceIdRatio:return new ml(vl(e));case Be.ParentBasedTraceIdRatio:return new ia({root:new ml(vl(e))});default:return L.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+hP+'".'),new sn}}function vl(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return L.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+Yt+"."),Yt;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(L.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+Yt+"."),Yt):t<0||t>1?(L.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+Yt+"."),Yt):t}function gP(e){var t={sampler:m_()},n=g_(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function mP(e){var t,n,r,i,o,a,s,u,c,l,d,f,p=Object.assign({},e.spanLimits),_=iI();return p.attributeCountLimit=(a=(o=(i=(n=(t=e.spanLimits)===null||t===void 0?void 0:t.attributeCountLimit)!==null&&n!==void 0?n:(r=e.generalLimits)===null||r===void 0?void 0:r.attributeCountLimit)!==null&&i!==void 0?i:_.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&o!==void 0?o:_.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&a!==void 0?a:di,p.attributeValueLengthLimit=(f=(d=(l=(u=(s=e.spanLimits)===null||s===void 0?void 0:s.attributeValueLengthLimit)!==null&&u!==void 0?u:(c=e.generalLimits)===null||c===void 0?void 0:c.attributeValueLengthLimit)!==null&&l!==void 0?l:_.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&d!==void 0?d:_.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&f!==void 0?f:fi,Object.assign({},e,{spanLimits:p})}var vP=(function(){function e(t,n){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var r=fr();this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:r.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:r.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:r.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof n?.exportTimeoutMillis=="number"?n.exportTimeoutMillis:r.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new lP(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(L.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(t,n){},e.prototype.onEnd=function(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Te.SAMPLED)!==0&&this._addToBuffer(t)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var t=this;return Promise.resolve().then(function(){return t.onShutdown()}).then(function(){return t._flushAll()}).then(function(){return t._exporter.shutdown()})},e.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&L.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(L.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},e.prototype._flushAll=function(){var t=this;return new Promise(function(n,r){for(var i=[],o=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize),a=0,s=o;a<s;a++)i.push(t._flushOneBatch());Promise.all(i).then(function(){n()}).catch(r)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(n,r){var i=setTimeout(function(){r(new Error("Timeout"))},t._exportTimeoutMillis);q.with(ww(q.active()),function(){var o;t._finishedSpans.length<=t._maxExportBatchSize?(o=t._finishedSpans,t._finishedSpans=[]):o=t._finishedSpans.splice(0,t._maxExportBatchSize);for(var a=function(){return t._exporter.export(o,function(d){var f;clearTimeout(i),d.code===Ka.SUCCESS?n():r((f=d.error)!==null&&f!==void 0?f:new Error("BatchSpanProcessor: span export failed"))})},s=null,u=0,c=o.length;u<c;u++){var l=o[u];l.resource.asyncAttributesPending&&l.resource.waitForAsyncAttributes&&(s??(s=[]),s.push(l.resource.waitForAsyncAttributes()))}s===null?a():Promise.all(s).then(a,function(d){_n(d),r(d)})})})},e.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var n=function(){t._isExporting=!0,t._flushOneBatch().finally(function(){t._isExporting=!1,t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(r){t._isExporting=!1,_n(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return n();this._timer===void 0&&(this._timer=setTimeout(function(){return n()},this._scheduledDelayMillis),this._timer,void 0)}},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e})(),EP=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
48t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),v_=(function(e){EP(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.onInit(r),i}return t.prototype.onInit=function(n){var r=this;n?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&r.forceFlush().catch(function(i){_n(i)})},this._pageHideListener=function(){r.forceFlush().catch(function(i){_n(i)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t})(vP),TP=8,SP=16,yP=(function(){function e(){this.generateTraceId=El(SP),this.generateSpanId=El(TP)}return e})(),Vr=Array(32);function El(e){return function(){for(var n=0;n<e*2;n++)Vr[n]=Math.floor(Math.random()*16)+48,Vr[n]>=58&&(Vr[n]+=39);return String.fromCharCode.apply(null,Vr.slice(0,e*2))}}var bP=(function(){function e(t,n,r){this._tracerProvider=r;var i=gP(n);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=n.idGenerator||new yP,this.resource=r.resource,this.instrumentationLibrary=t}return e.prototype.startSpan=function(t,n,r){var i,o,a;n===void 0&&(n={}),r===void 0&&(r=q.active()),n.root&&(r=K.deleteSpan(r));var s=K.getSpan(r);if(tu(r)){L.debug("Instrumentation suppressed, returning Noop Span");var u=K.wrapSpanContext(ep);return u}var c=s?.spanContext(),l=this._idGenerator.generateSpanId(),d,f,p;!c||!K.isSpanContextValid(c)?d=this._idGenerator.generateTraceId():(d=c.traceId,f=c.traceState,p=c.spanId);var _=(i=n.kind)!==null&&i!==void 0?i:pn.INTERNAL,h=((o=n.links)!==null&&o!==void 0?o:[]).map(function(m){return{context:m.context,attributes:li(m.attributes)}}),g=li(n.attributes),E=this._sampler.shouldSample(r,d,t,_,g,h);f=(a=E.traceState)!==null&&a!==void 0?a:f;var b=E.decision===St.RECORD_AND_SAMPLED?Te.SAMPLED:Te.NONE,v={traceId:d,spanId:l,traceFlags:b,traceState:f};if(E.decision===St.NOT_RECORD){L.debug("Recording is off, propagating context in a non-recording span");var u=K.wrapSpanContext(v);return u}var T=li(Object.assign(g,E.attributes)),O=new _P(this,r,t,v,_,p,h,n.startTime,void 0,T);return O},e.prototype.startActiveSpan=function(t,n,r,i){var o,a,s;if(!(arguments.length<2)){arguments.length===2?s=n:arguments.length===3?(o=n,s=r):(o=n,a=r,s=i);var u=a??q.active(),c=this.startSpan(t,o,u),l=K.setSpan(u,c);return q.with(l,s,void 0,c)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e})();function OP(){return"unknown_service"}var ot=function(){return ot=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ot.apply(this,arguments)},RP=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(d){a(d)}}function u(l){try{c(r.throw(l))}catch(d){a(d)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(e,t||[])).next())})},AP=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},wP=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Tl=(function(){function e(t,n){var r=this,i;this._attributes=t,this.asyncAttributesPending=n!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=n?.then(function(o){return r._attributes=Object.assign({},r._attributes,o),r.asyncAttributesPending=!1,o},function(o){return L.debug("a resource's async attributes promise rejected: %s",o),r.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[TI]=OP(),t[za]=ea[za],t[Xa]=ea[Xa],t[qa]=ea[qa],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&L.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}}
48,enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return RP(this,void 0,void 0,function(){return AP(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var n=this,r;if(!t)return this;var i=ot(ot({},this._syncAttributes),(r=t._syncAttributes)!==null&&r!==void 0?r:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var o=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(a){var s,u=wP(a,2),c=u[0],l=u[1];return ot(ot(ot(ot({},n._syncAttributes),c),(s=t._syncAttributes)!==null&&s!==void 0?s:t.attributes),l)});return new e(i,o)},e.EMPTY=new e({}),e})(),Xr=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Sl=(function(){function e(t){this._spanProcessors=t}return e.prototype.forceFlush=function(){var t,n,r=[];try{for(var i=Xr(this._spanProcessors),o=i.next();!o.done;o=i.next()){var a=o.value;r.push(a.forceFlush())}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return new Promise(function(s){Promise.all(r).then(function(){s()}).catch(function(u){_n(u||new Error("MultiSpanProcessor: forceFlush failed")),s()})})},e.prototype.onStart=function(t,n){var r,i;try{for(var o=Xr(this._spanProcessors),a=o.next();!a.done;a=o.next()){var s=a.value;s.onStart(t,n)}}catch(u){r={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}},e.prototype.onEnd=function(t){var n,r;try{for(var i=Xr(this._spanProcessors),o=i.next();!o.done;o=i.next()){var a=o.value;a.onEnd(t)}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.shutdown=function(){var t,n,r=[];try{for(var i=Xr(this._spanProcessors),o=i.next();!o.done;o=i.next()){var a=o.value;r.push(a.shutdown())}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return new Promise(function(s,u){Promise.all(r).then(function(){s()},u)})},e})(),IP=(function(){function e(){}return e.prototype.onStart=function(t,n){},e.prototype.onEnd=function(t){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e})(),PP=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},LP=function(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Pt;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Pt||(Pt={}));var NP=(function(){function e(t){t===void 0&&(t={});var n,r;this._registeredSpanProcessors=[],this._tracers=new Map;var i=iP({},g_(),mP(t));if(this.resource=(n=i.resource)!==null&&n!==void 0?n:Tl.empty(),i.mergeResourceWithDefaults&&(this.resource=Tl.default().merge(this.resource)),this._config=Object.assign({},i,{resource:this.resource}),!((r=t.spanProcessors)===null||r===void 0)&&r.length)this._registeredSpanProcessors=LP([],PP(t.spanProcessors),!1),this.activeSpanProcessor=new Sl(this._registeredSpanProcessors);else{var o=this._buildExporterFromEnv();if(o!==void 0){var a=new v_(o);this.activeSpanProcessor=a}else this.activeSpanProcessor=new IP}}return e.prototype.getTracer=function(t,n,r){var i=t+"@"+(n||"")+":"+(r?.schemaUrl||"");return this._tracers.has(i)||this._tracers.set(i,new bP({name:t,version:n,schemaUrl:r?.schemaUrl},this._config,this)),this._tracers.get(i)},e.prototype.addSpanProcessor=function(t){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(n){return L.error("Error while trying to shutdown current span processor",n)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new Sl(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(t){t===void 0&&(t={}),K.setGlobalTracerProvider(this),t.propagator===void 0&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&q.setGlobalContextManager(t.contextManager),t.propagator&&le.setGlobalPropagator(t.propagator)},e.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map(function(r){return new Promise(function(i){var o,a=setTimeout(function(){i(new Error("Span processor did n
48ot completed within timeout period of "+t+" ms")),o=Pt.timeout},t);r.forceFlush().then(function(){clearTimeout(a),o!==Pt.timeout&&(o=Pt.resolved,i(o))}).catch(function(s){clearTimeout(a),o=Pt.error,i(s)})})});return new Promise(function(r,i){Promise.all(n).then(function(o){var a=o.filter(function(s){return s!==Pt.resolved});a.length>0?i(a):r()}).catch(function(o){return i([o])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(t){var n;return(n=this.constructor._registeredPropagators.get(t))===null||n===void 0?void 0:n()},e.prototype._getSpanExporter=function(t){var n;return(n=this.constructor._registeredExporters.get(t))===null||n===void 0?void 0:n()},e.prototype._buildPropagatorFromEnv=function(){var t=this,n=Array.from(new Set(fr().OTEL_PROPAGATORS)),r=n.map(function(o){var a=t._getPropagator(o);return a||L.warn('Propagator "'+o+'" requested through environment variable is unavailable.'),a}),i=r.reduce(function(o,a){return a&&o.push(a),o},[]);if(i.length!==0)return n.length===1?i[0]:new II({propagators:i})},e.prototype._buildExporterFromEnv=function(){var t=fr().OTEL_TRACES_EXPORTER;if(!(t==="none"||t==="")){var n=this._getSpanExporter(t);return n||L.error('Exporter "'+t+'" requested through environment variable is unavailable.'),n}},e._registeredPropagators=new Map([["tracecontext",function(){return new XI}],["baggage",function(){return new kw}]]),e._registeredExporters=new Map,e})(),CP=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},MP=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},xP=(function(){function e(){this._enabled=!1,this._currentContext=Qt}return e.prototype._bindFunction=function(t,n){t===void 0&&(t=Qt);var r=this,i=function(){for(var o=this,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return r.with(t,function(){return n.apply(o,a)})};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i},e.prototype.active=function(){return this._currentContext},e.prototype.bind=function(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):n},e.prototype.disable=function(){return this._currentContext=Qt,this._enabled=!1,this},e.prototype.enable=function(){return this._enabled?this:(this._enabled=!0,this._currentContext=Qt,this)},e.prototype.with=function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a=this._currentContext;this._currentContext=t||Qt;try{return n.call.apply(n,MP([r],CP(i),!1))}finally{this._currentContext=a}},e})(),DP=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),kP=(function(e){DP(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,n)||this;if(n.contextManager)throw"contextManager should be defined in register method not in constructor";if(n.propagator)throw"propagator should be defined in register method not in constructor";return r}return t.prototype.register=function(n){n===void 0&&(n={}),n.contextManager===void 0&&(n.contextManager=new xP),n.contextManager&&n.contextManager.enable(),e.prototype.register.call(this,n)},t})(NP),B;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(B||(B={}));var oa;function UP(){return oa||(oa=document.createElement("a")),oa}function Ja(e,t){return t in e}function ze(e,t,n,r){var i=void 0,o=void 0;
48Ja(n,t)&&typeof n[t]=="number"&&(i=n[t]);var a=B.FETCH_START;if(Ja(n,a)&&typeof n[a]=="number"&&(o=n[a]),i!==void 0&&o!==void 0&&i>=o)return e.addEvent(t,i),e}function Bi(e,t,n){n===void 0&&(n=!1),n||(ze(e,B.FETCH_START,t),ze(e,B.DOMAIN_LOOKUP_START,t),ze(e,B.DOMAIN_LOOKUP_END,t),ze(e,B.CONNECT_START,t),Ja(t,"name")&&t.name.startsWith("https:")&&ze(e,B.SECURE_CONNECTION_START,t),ze(e,B.CONNECT_END,t),ze(e,B.REQUEST_START,t),ze(e,B.RESPONSE_START,t),ze(e,B.RESPONSE_END,t));var r=t[B.ENCODED_BODY_SIZE];r!==void 0&&e.setAttribute(dI,r);var i=t[B.DECODED_BODY_SIZE];i!==void 0&&r!==i&&e.setAttribute(pI,i)}function $P(e){return e.slice().sort(function(t,n){var r=t[B.FETCH_START],i=n[B.FETCH_START];return r>i?1:r<i?-1:0})}function E_(){return typeof location<"u"?location.origin:void 0}function T_(e,t,n,r,i,o){i===void 0&&(i=new WeakSet);var a=We(e);e=a.toString();var s=jP(e,t,n,r,i,o);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};var u=$P(s);if(a.origin!==E_()&&u.length>1){var c=u[0],l=BP(u,c[B.RESPONSE_END],n),d=c[B.RESPONSE_END],f=l[B.FETCH_START];return f<d&&(l=c,c=void 0),{corsPreFlightRequest:c,mainRequest:l}}else return{mainRequest:s[0]}}function BP(e,t,n){for(var r=ht(n),i=ht(Zn(t)),o=e[1],a,s=e.length,u=1;u<s;u++){var c=e[u],l=ht(Zn(c[B.FETCH_START])),d=ht(Zn(c[B.RESPONSE_END])),f=r-d;l>=i&&(!a||f<a)&&(a=f,o=c)}return o}function jP(e,t,n,r,i,o){var a=ht(t),s=ht(n),u=r.filter(function(c){var l=ht(Zn(c[B.FETCH_START])),d=ht(Zn(c[B.RESPONSE_END]));return c.initiatorType.toLowerCase()===(o||"xmlhttprequest")&&c.name===e&&l>=a&&d<=s});return u.length>0&&(u=u.filter(function(c){return!i.has(c)})),u}function We(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);var t=UP();return t.href=e,t}function S_(e,t){var n=t||[];(typeof n=="string"||n instanceof RegExp)&&(n=[n]);var r=We(e);return r.origin===E_()?!0:n.some(function(i){return aP(e,i)})}var ji;(function(e){e.COMPONENT="component",e.HTTP_ERROR_NAME="http.error_name",e.HTTP_STATUS_TEXT="http.status_text"})(ji||(ji={}));var FP=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(d){a(d)}}function u(l){try{c(r.throw(l))}catch(d){a(d)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(e,[])).next())})},HP=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},GP=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},VP=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},y_=L.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function XP(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e[0]instanceof URL||typeof e[0]=="string"){var n=e[1];if(!n?.body)return Promise.resolve();if(n.body instanceof ReadableStream){var r=zP(n.body),i=r.body,o=r.length;return n.body=i,o}else return Promise.resolve(qP(n.body))}else{var a=e[0];return a?.body?a.clone().text().then(function(s){return Qa(s)}):Promise.resolve()}}function zP(e){if(!e.pipeThrough)return y_.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};var t=0,n,r=new Promise(function(o){n=o}),i=new TransformStream({start:function(){},transform:function(o,a){return FP(this,void 0,void 0,function(){var s;return HP(this,function(u){switch(u.label){case 0:return[4,o];case 1:return s=u.sent(),t+=s.byteLength,a.enqueue(o),[2]}})})},flush:function(){n(t)}});return{body:e.pipeThrough(i),length:r}}function qP(e){if(typeof Document<"u"&&e instanceof Document)return new XMLSerializer().serializeToString(document).length;if(e instanceof Blob)return e.size;if(e.byteLength!==void 0)return e.byteLength;if(e instanceof FormData)return WP(e);if(e instanceof URLSearchParams)return Qa(e.toString());if(typeof e=="string")return Qa(e);y_.warn("unknown body type")}var KP=new TextEncoder;function Qa(e){return KP.encode(e).byteLength}function WP(e){var t,n,r=0;try{for(var i=GP(e.entries()),o=i.next();!o.done;o=i.next()){var a=VP(o.value,2),s=a[0],u=a[1];r+=s.length,u instanceof Blob?r+=u.size:r+=u.length}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}var yl="0.57.2",YP=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
48t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),JP=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},QP=function(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},aa,ZP=300,bl=typeof process=="object"&&((aa=process.release)===null||aa===void 0?void 0:aa.name)==="node",eL=(function(e){YP(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,"@opentelemetry/instrumentation-fetch",yl,n)||this;return r.component="fetch",r.version=yl,r.moduleName=r.component,r._usedResources=new WeakSet,r._tasksCount=0,r}return t.prototype.init=function(){},t.prototype._addChildSpan=function(n,r){var i=this.tracer.startSpan("CORS Preflight",{startTime:r[B.FETCH_START]},K.setSpan(q.active(),n));Bi(i,r,this.getConfig().ignoreNetworkEvents),i.end(r[B.RESPONSE_END])},t.prototype._addFinalSpanAttributes=function(n,r){var i=We(r.url);n.setAttribute(gw,r.status),r.statusText!=null&&n.setAttribute(ji.HTTP_STATUS_TEXT,r.statusText),n.setAttribute(_w,i.host),n.setAttribute(hw,i.protocol.replace(":","")),typeof navigator<"u"&&n.setAttribute(mw,navigator.userAgent)},t.prototype._addHeaders=function(n,r){if(!S_(r,this.getConfig().propagateTraceHeaderCorsUrls)){var i={};le.inject(q.active(),i),Object.keys(i).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(n instanceof Request)le.inject(q.active(),n.headers,{set:function(o,a,s){return o.set(a,typeof s=="string"?s:String(s))}});else if(n.headers instanceof Headers)le.inject(q.active(),n.headers,{set:function(o,a,s){return o.set(a,typeof s=="string"?s:String(s))}});else if(n.headers instanceof Map)le.inject(q.active(),n.headers,{set:function(o,a,s){return o.set(a,typeof s=="string"?s:String(s))}});else{var i={};le.inject(q.active(),i),n.headers=Object.assign({},i,n.headers||{})}},t.prototype._clearResources=function(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},t.prototype._createSpan=function(n,r){var i;if(r===void 0&&(r={}),Aw(n,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}var o=(r.method||"GET").toUpperCase(),a="HTTP "+o;return this.tracer.startSpan(a,{kind:pn.CLIENT,attributes:(i={},i[ji.COMPONENT]=this.moduleName,i[dw]=o,i[pw]=n,i)})},t.prototype._findResourceAndAddNetworkEvents=function(n,r,i){var o=r.entries;if(!o.length){if(!performance.getEntriesByType)return;o=performance.getEntriesByType("resource")}var a=T_(r.spanUrl,r.startTime,i,o,this._usedResources,"fetch");if(a.mainRequest){var s=a.mainRequest;this._markResourceAsUsed(s);var u=a.corsPreFlightRequest;u&&(this._addChildSpan(n,u),this._markResourceAsUsed(u)),Bi(n,s,this.getConfig().ignoreNetworkEvents)}},t.prototype._markResourceAsUsed=function(n){this._usedResources.add(n)},t.prototype._endSpan=function(n,r,i){var o=this,a=Ha(Date.now()),s=cl();this._addFinalSpanAttributes(n,i),setTimeout(function(){var u;(u=r.observer)===null||u===void 0||u.disconnect(),o._findResourceAndAddNetworkEvents(n,r,s),o._tasksCount--,o._clearResources(),n.end(a)},ZP)},t.prototype._patchConstructor=function(){var n=this;return function(r){var i=n;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var u=this,c=We(a[0]instanceof Request?a[0].url:String(a[0])).href,l=a[0]instanceof Request?a[0]:a[1]||{},d=i._createSpan(c,l);if(!d)return r.apply(this,a);var f=i._prepareSpanData(c);i.getConfig().measureRequestSize&&XP.apply(void 0,QP([],JP(a),!1)).then(function(E){E&&d.setAttribute(vw,E)}).catch(function(E){i._diag.warn("getFetchBodyLength",E)});function p(E,b){i._applyAttributesAfterFetch(E,l,b),i._endSpan(E,f,{status:b.status||0,statusText:b.message,url:c})}function _(E,b){i._applyAttributesAfterFetch(E,l,b),b.status>=200&&b.status<400?i._endSpan(E,f,b):i._endSpan(E,f,{status:b.status,statusText:b.statusText,url:c})}function h(E,b,v){try{var T=v.clone(),O=v.clone(),m=T.body;if(m){var R=m.getReader(),U=function(){R.read().then(function(j){var ne=j.done;ne?_(E,O):U()},function(j){p(E,j)})};U()}else _(E,v)}finally{b(v)}}function g(E,b,v){try{p(E,v)}finally{b(v)}}return new Promise(function(E,b){return q.with(K.setSpan(q.active(),d),function(){return i._addHeaders(l,c),i._tasksCount++,r.apply(u,l instanceof Request?[l]:[c,l]).then(h.bind(u,d,E),g.bind(u,d,b))})})}}},t.prototype._applyAttributesAfterFetch=function(n,r,i){var o=this,a=this.getConfig().applyCustomAttributesOnSpan;a&&rw(function(){return a(n,r,i)},function(s){s&&o._diag.error("applyCustomAttributesOnSpan",s)})},t.prototype._prepareSpanData=function(n){var r=cl(),i=[];if(typeof PerformanceObserver!="function")return{entries:i,startTime:r,spanUrl:n};var o=new PerformanceObserver(function(a){var s=a.getEntries();
48s.forEach(function(u){u.initiatorType==="fetch"&&u.name===n&&i.push(u)})});return o.observe({entryTypes:["resource"]}),{entries:i,observer:o,startTime:r,spanUrl:n}},t.prototype.enable=function(){if(bl){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}iw(fetch)&&(this._unwrap(Yo,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(Yo,"fetch",this._patchConstructor())},t.prototype.disable=function(){bl||(this._unwrap(Yo,"fetch"),this._usedResources=new WeakSet)},t})(nw),b_=(function(){function e(){}return e.prototype.emit=function(t){},e})(),tL=new b_,nL=(function(){function e(){}return e.prototype.getLogger=function(t,n,r){return new b_},e})(),O_=new nL,rL=(function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.emit=function(t){this._getLogger().emit(t)},e.prototype._getLogger=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):tL},e})(),Ol=(function(){function e(){}return e.prototype.getLogger=function(t,n,r){var i;return(i=this.getDelegateLogger(t,n,r))!==null&&i!==void 0?i:new rL(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:O_},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateLogger=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(t,n,r)},e})(),iL=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},zr=Symbol.for("io.opentelemetry.js.api.logs"),Fn=iL;function oL(e,t,n){return function(r){return r===e?t:n}}var Rl=1,aL=(function(){function e(){this._proxyLoggerProvider=new Ol}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return Fn[zr]?this.getLoggerProvider():(Fn[zr]=oL(Rl,t,O_),this._proxyLoggerProvider.setDelegate(t),t)},e.prototype.getLoggerProvider=function(){var t,n;return(n=(t=Fn[zr])===null||t===void 0?void 0:t.call(Fn,Rl))!==null&&n!==void 0?n:this._proxyLoggerProvider},e.prototype.getLogger=function(t,n,r){return this.getLoggerProvider().getLogger(t,n,r)},e.prototype.disable=function(){delete Fn[zr],this._proxyLoggerProvider=new Ol},e})(),sL=aL.getInstance(),Za=function(){return Za=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Za.apply(this,arguments)},uL=(function(){function e(t,n,r){this.instrumentationName=t,this.instrumentationVersion=n,this._config={},this._wrap=pt.wrap,this._unwrap=pt.unwrap,this._massWrap=pt.massWrap,this._massUnwrap=pt.massUnwrap,this.setConfig(r),this._diag=L.createComponentLogger({namespace:t}),this._tracer=K.getTracer(t,n),this._meter=js.getMeter(t,n),this._logger=sL.getLogger(t,n),this._updateMetricInstruments()}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)},e.prototype.getModuleDefinitions=function(){var t,n=(t=this.init())!==null&&t!==void 0?t:[];return Array.isArray(n)?n:[n]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(t){this._config=Za({enabled:!0},t)},e.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e.prototype._runSpanCustomizationHook=function(t,n,r,i){if(t)try{t(r,i)}catch(o){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},o)}},e})(),cL=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
48t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),lL=(function(e){cL(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o._config.enabled&&o.enable(),o}return t})(uL);function fL(e,t,n){var r,i;try{i=e()}catch(o){r=o}finally{return t(r,i),i}}function Al(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var dr=performance,dL="http.method",pL="http.url",_L="http.host",hL="http.scheme",gL="http.status_code",mL="http.user_agent",vL="http.request_content_length_uncompressed",EL=dL,TL=pL,SL=_L,yL=hL,bL=gL,OL=mL,RL=vL,AL=9,wL=6,IL=Math.pow(10,wL),wl=Math.pow(10,AL);function Il(e){var t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*IL);return[n,r]}function PL(){var e=dr.timeOrigin;if(typeof e!="number"){var t=dr;e=t.timing&&t.timing.fetchStart}return e}function Pl(e){var t=Il(PL()),n=Il(dr.now());return LL(t,n)}function LL(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=wl&&(n[1]-=wl,n[0]+=1),n}var NL=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function CL(e,t){return typeof t=="string"?e===t:!!e.match(t)}function ML(e,t){var n,r;if(!t)return!1;try{for(var i=NL(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(CL(e,a))return!0}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}var Ke;(function(e){e.METHOD_OPEN="open",e.METHOD_SEND="send",e.EVENT_ABORT="abort",e.EVENT_ERROR="error",e.EVENT_LOAD="loaded",e.EVENT_TIMEOUT="timeout"})(Ke||(Ke={}));var xL=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},DL=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},kL=L.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"});function UL(e){if(typeof Document<"u"&&e instanceof Document)return new XMLSerializer().serializeToString(document).length;if(e instanceof Blob)return e.size;if(e.byteLength!==void 0)return e.byteLength;if(e instanceof FormData)return BL(e);if(e instanceof URLSearchParams)return Ll(e.toString());if(typeof e=="string")return Ll(e);kL.warn("unknown body type")}var $L=new TextEncoder;function Ll(e){return $L.encode(e).byteLength}function BL(e){var t,n,r=0;try{for(var i=xL(e.entries()),o=i.next();!o.done;o=i.next()){var a=DL(o.value,2),s=a[0],u=a[1];r+=s.length,u instanceof Blob?r+=u.size:r+=u.length}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}var Nl="0.57.2",es;(function(e){e.HTTP_STATUS_TEXT="http.status_text"})(es||(es={}));var jL=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),FL=300,HL=(function(e){jL(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,"@opentelemetry/instrumentation-xml-http-request",Nl,n)||this;return r.component="xml-http-request",r.version=Nl,r.moduleName=r.component,r._tasksCount=0,r._xhrMem=new WeakMap,r._usedResources=new WeakSet,r}return t.prototype.init=function(){},t.prototype._addHeaders=function(n,r){var i=We(r).href;if(!S_(i,this.getConfig().propagateTraceHeaderCorsUrls)){var o={};le.inject(q.active(),o),Object.keys(o).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}var a={};
48le.inject(q.active(),a),Object.keys(a).forEach(function(s){n.setRequestHeader(s,String(a[s]))})},t.prototype._addChildSpan=function(n,r){var i=this;q.with(K.setSpan(q.active(),n),function(){var o=i.tracer.startSpan("CORS Preflight",{startTime:r[B.FETCH_START]});Bi(o,r,i.getConfig().ignoreNetworkEvents),o.end(r[B.RESPONSE_END])})},t.prototype._addFinalSpanAttributes=function(n,r,i){if(typeof i=="string"){var o=We(i);r.status!==void 0&&n.setAttribute(bL,r.status),r.statusText!==void 0&&n.setAttribute(es.HTTP_STATUS_TEXT,r.statusText),n.setAttribute(SL,o.host),n.setAttribute(yL,o.protocol.replace(":","")),n.setAttribute(OL,navigator.userAgent)}},t.prototype._applyAttributesAfterXHR=function(n,r){var i=this,o=this.getConfig().applyCustomAttributesOnSpan;typeof o=="function"&&fL(function(){return o(n,r)},function(a){a&&i._diag.error("applyCustomAttributesOnSpan",a)})},t.prototype._addResourceObserver=function(n,r){var i=this._xhrMem.get(n);!i||typeof PerformanceObserver!="function"||typeof PerformanceResourceTiming!="function"||(i.createdResources={observer:new PerformanceObserver(function(o){var a=o.getEntries(),s=We(r);a.forEach(function(u){u.initiatorType==="xmlhttprequest"&&u.name===s.href&&i.createdResources&&i.createdResources.entries.push(u)})}),entries:[]},i.createdResources.observer.observe({entryTypes:["resource"]}))},t.prototype._clearResources=function(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(dr.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},t.prototype._findResourceAndAddNetworkEvents=function(n,r,i,o,a){if(!(!i||!o||!a||!n.createdResources)){var s=n.createdResources.entries;(!s||!s.length)&&(s=dr.getEntriesByType("resource"));var u=T_(We(i).href,o,a,s,this._usedResources);if(u.mainRequest){var c=u.mainRequest;this._markResourceAsUsed(c);var l=u.corsPreFlightRequest;l&&(this._addChildSpan(r,l),this._markResourceAsUsed(l)),Bi(r,c,this.getConfig().ignoreNetworkEvents)}}},t.prototype._cleanPreviousSpanInformation=function(n){var r=this._xhrMem.get(n);if(r){var i=r.callbackToRemoveEvents;i&&i(),this._xhrMem.delete(n)}},t.prototype._createSpan=function(n,r,i){var o;if(ML(r,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}var a=i.toUpperCase(),s=this.tracer.startSpan(a,{kind:pn.CLIENT,attributes:(o={},o[EL]=i,o[TL]=We(r).toString(),o)});return s.addEvent(Ke.METHOD_OPEN),this._cleanPreviousSpanInformation(n),this._xhrMem.set(n,{span:s,spanUrl:r}),s},t.prototype._markResourceAsUsed=function(n){this._usedResources.add(n)},t.prototype._patchOpen=function(){var n=this;return function(r){var i=n;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var u=a[0],c=a[1];return i._createSpan(this,c,u),r.apply(this,a)}}},t.prototype._patchSend=function(){var n=this;function r(l,d,f,p){var _=d.callbackToRemoveEvents;typeof _=="function"&&_();var h=d.span,g=d.spanUrl,E=d.sendStartTime;h&&(n._findResourceAndAddNetworkEvents(d,h,g,E,f),h.addEvent(l,p),n._addFinalSpanAttributes(h,d,g),h.end(p),n._tasksCount--),n._clearResources()}function i(l,d){var f=n._xhrMem.get(d);if(f){f.status=d.status,f.statusText=d.statusText,n._xhrMem.delete(d),f.span&&n._applyAttributesAfterXHR(f.span,d);var p=Pl(),_=Date.now();setTimeout(function(){r(l,f,p,_)},FL)}}function o(){i(Ke.EVENT_ERROR,this)}function a(){i(Ke.EVENT_ABORT,this)}function s(){i(Ke.EVENT_TIMEOUT,this)}function u(){this.status<299?i(Ke.EVENT_LOAD,this):i(Ke.EVENT_ERROR,this)}function c(l){l.removeEventListener("abort",a),l.removeEventListener("error",o),l.removeEventListener("load",u),l.removeEventListener("timeout",s);var d=n._xhrMem.get(l);d&&(d.callbackToRemoveEvents=void 0)}return function(l){return function(){for(var f=this,p=[],_=0;_<arguments.length;_++)p[_]=arguments[_];var h=n._xhrMem.get(this);if(!h)return l.apply(this,p);var g=h.span,E=h.spanUrl;if(g&&E){if(n.getConfig().measureRequestSize&&p?.[0]){var b=p[0],v=UL(b);v!==void 0&&g.setAttribute(RL,v)}q.with(K.setSpan(q.active(),g),function(){n._tasksCount++,h.sendStartTime=Pl(),g.addEvent(Ke.METHOD_SEND),f.addEventListener("abort",a),f.addEventListener("error",o),f.addEventListener("load",u),f.addEventListener("timeout",s),h.callbackToRemoveEvents=function(){c(f),h.createdResources&&h.
48createdResources.observer.disconnect()},n._addHeaders(f,E),n._addResourceObserver(f,E)})}return l.apply(this,p)}}},t.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),Al(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),Al(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())},t.prototype.disable=function(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet},t})(lL);function GL(e){if(yn(e))return e;if(e instanceof URL)return e.href;if(!rt(e)&&bn(e?.toString))return e.toString()}class VL extends HL{constructor(t={}){super(t);const n=this;this.parentCreateSpan=n._createSpan.bind(this)}_patchOpen(){return t=>{const n=this;return function(...i){try{const o=i[0];let a=GL(i[1]);n.parentCreateSpan(this,a,o)}catch(o){V.internalLogger.error(o)}return t.apply(this,i)}}}}function XL(e,t,n){const r=n instanceof Error?0:n.status;R_(e,r)}function zL(e,t){R_(e,t.status)}function R_(e,t){if(t==null)return;const n=t===0,r=t>=400&&t<600;(n||r)&&e.setStatus({code:Li.ERROR})}function qL(e){return(t,n,r)=>{XL(t,n,r),e?.(t,n,r)}}function KL(e){return(t,n)=>{zL(t,n),e?.(t,n)}}var WL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function YL(e={}){const{fetchInstrumentationOptions:t,xhrInstrumentationOptions:n}=e,r=WL(e,["fetchInstrumentationOptions","xhrInstrumentationOptions"]),i=JL(t,r),o=QL(n,r);return[new eL(i),new VL(o)]}function JL(e,t){return Object.assign(Object.assign(Object.assign(Object.assign({},t),{ignoreNetworkEvents:!0}),e),{applyCustomAttributesOnSpan:qL(e?.applyCustomAttributesOnSpan)})}function QL(e,t){return Object.assign(Object.assign(Object.assign(Object.assign({},t),{ignoreNetworkEvents:!0}),e),{applyCustomAttributesOnSpan:KL(e?.applyCustomAttributesOnSpan)})}var A_=(function(){function e(){}return e.prototype.emit=function(t){},e})(),ZL=new A_,eN=(function(){function e(){}return e.prototype.getLogger=function(t,n,r){return new A_},e})(),w_=new eN,tN=(function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.emit=function(t){this._getLogger().emit(t)},e.prototype._getLogger=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):ZL},e})(),Cl=(function(){function e(){}return e.prototype.getLogger=function(t,n,r){var i;return(i=this.getDelegateLogger(t,n,r))!==null&&i!==void 0?i:new tN(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:w_},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateLogger=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(t,n,r)},e})(),nN=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},qr=Symbol.for("io.opentelemetry.js.api.logs"),Hn=nN;function rN(e,t,n){return function(r){return r===e?t:n}}var Ml=1,iN=(function(){function e(){this._proxyLoggerProvider=new Cl}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return Hn[qr]?this.getLoggerProvider():(Hn[qr]=rN(Ml,t,w_),this._proxyLoggerProvider.setDelegate(t),t)},e.prototype.getLoggerProvider=function(){var t,n;return(n=(t=Hn[qr])===null||t===void 0?void 0:t.call(Hn,Ml))!==null&&n!==void 0?n:this._proxyLoggerProvider},e.prototype.getLogger=function(t,n,r){return this.getLoggerProvider().getLogger(t,n,r)},e.prototype.disable=function(){delete Hn[qr],this._proxyLoggerProvider=new Cl},e})(),oN=iN.getInstance();function aN(e,t,n,r){for(var i=0,o=e.length;i<o;i++){var a=e[i];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}function sN(e){e.forEach(function(t){return t.disable()})}function uN(e){var t,n,r=e.tracerProvider||K.getTracerProvider(),i=e.meterProvider||js.getMeterProvider(),o=e.loggerProvider||oN.getLoggerProvider(),a=(n=(t=e.instrumentations)===null||t===void 0?void 0:t.flat())!==null&&n!==void 0?n:[];return aN(a,r,i,o),function(){sN(a)}}var cN="process.runtime.name",lN="service.name",fN="telemetry.sdk.name",dN="telemetry.sdk.language",pN="telemetry.sdk.version",_N=cN,hN=lN,ts=fN,ns=dN,rs=pN,gN="webjs",mN=gN,vN="1.30.1",Jt,sa=(Jt={},Jt[ts]="opentelemetry",Jt[_N]="browser",Jt[ns]=mN,Jt[rs]=vN,Jt);function EN(){return"unknown_service"}var at=function(){return at=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},at.apply(this,arguments)},TN=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}
48return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(d){a(d)}}function u(l){try{c(r.throw(l))}catch(d){a(d)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(e,t||[])).next())})},SN=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},yN=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},xl=(function(){function e(t,n){var r=this,i;this._attributes=t,this.asyncAttributesPending=n!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=n?.then(function(o){return r._attributes=Object.assign({},r._attributes,o),r.asyncAttributesPending=!1,o},function(o){return L.debug("a resource's async attributes promise rejected: %s",o),r.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[hN]=EN(),t[ns]=sa[ns],t[ts]=sa[ts],t[rs]=sa[rs],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&L.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return TN(this,void 0,void 0,function(){return SN(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var n=this,r;if(!t)return this;var i=at(at({},this._syncAttributes),(r=t._syncAttributes)!==null&&r!==void 0?r:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var o=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(a){var s,u=yN(a,2),c=u[0],l=u[1];return at(at(at(at({},n._syncAttributes),c),(s=t._syncAttributes)!==null&&s!==void 0?s:t.attributes),l)});return new e(i,o)},e.EMPTY=new e({}),e})();const bN="deployment.environment",ON=bN;class RN{constructor(t,n){this.processor=t,this.metas=n}forceFlush(){return this.processor.forceFlush()}onStart(t,n){var r;const i=this.metas.value.session;i?.id&&(t.attributes[VA]=i.id,t.attributes.session_id=i.id);const o=(r=this.metas.value.user)!==null&&r!==void 0?r:{};o.email&&(t.attributes["user.email"]=o.email),o.id&&(t.attributes["user.id"]=o.id),o.username&&(t.attributes["user.name"]=o.username),o.fullName&&(t.attributes["user.full_name"]=o.fullName),o.roles&&(t.attributes["user.roles"]=o.roles.split(",").map(a=>a.trim())),o.hash&&(t.attributes["user.hash"]=o.hash),this.processor.onStart(t,n)}onEnd(t){this.processor.onEnd(t)}shutdown(){return this.processor.shutdown()}}class AN{constructor(t){this.processor=t,dn.subscribe(n=>{if(n.type===jt){this.message=n;return}[ys,bs].includes(n.type)&&(this.message=void 0)})}forceFlush(){return this.processor.forceFlush()}onStart(t,n){var r,i;t.kind===pn.CLIENT&&this.message&&(t.attributes["faro.action.user.n
48ame"]=(r=this.message)===null||r===void 0?void 0:r.name,t.attributes["faro.action.user.parentId"]=(i=this.message)===null||i===void 0?void 0:i.parentId),this.processor.onStart(t,n)}onEnd(t){this.processor.onEnd(t)}shutdown(){return this.processor.shutdown()}}function wN(e={}){var t;return((t=e.attributes)===null||t===void 0?void 0:t.isSampled)==="true"?yt.RECORD_AND_SAMPLED:yt.NOT_RECORD}class _o extends Rt{constructor(t={}){super(),this.options=t,this.name="@grafana/faro-web-tracing",this.version=He}initialize(){var t,n,r,i;const o=this.options,a={};this.config.app.name&&(a[FA]=this.config.app.name),this.config.app.namespace&&(a[HA]=this.config.app.namespace),this.config.app.version&&(a[GA]=this.config.app.version),this.config.app.environment&&(a[jA]=this.config.app.environment,a[ON]=this.config.app.environment),Object.assign(a,o.resourceAttributes);const s=xl.default().merge(new xl(a));new kP({resource:s,sampler:{shouldSample:()=>({decision:wN(this.api.getSession())})},spanProcessors:[(t=o.spanProcessor)!==null&&t!==void 0?t:new AN(new RN(new v_(new BA({api:this.api}),{scheduledDelayMillis:_o.SCHEDULED_BATCH_DELAY_MS,maxExportBatchSize:30}),this.metas))]}).register({propagator:(n=o.propagator)!==null&&n!==void 0?n:new R0,contextManager:o.contextManager});const{propagateTraceHeaderCorsUrls:c,fetchInstrumentationOptions:l,xhrInstrumentationOptions:d}=(r=this.options.instrumentationOptions)!==null&&r!==void 0?r:{};uN({instrumentations:(i=o.instrumentations)!==null&&i!==void 0?i:YL({ignoreUrls:this.getIgnoreUrls(),propagateTraceHeaderCorsUrls:c,fetchInstrumentationOptions:l,xhrInstrumentationOptions:d})}),this.api.initOTEL(K,q)}getIgnoreUrls(){return this.transports.transports.flatMap(t=>t.getIgnoreUrls())}}_o.SCHEDULED_BATCH_DELAY_MS=1e3;function IN(){try{const e=location.hostname==="accounts.toggl.com",t=Lh(location.host);Qb({url:e?"https://faro.toggl.com/collect":t?"https://faro.ms.toggl.space/collect":"https://faro.toggl.space/collect",apiKey:"secret",app:{name:"accounts-fe-react",version:Jr().VERSION,environment:Jr().NODE_ENV},ignoreUrls:[/https:\/\/analytics\.google\.com/],instrumentations:[...Yd(),new _o],sessionTracking:{samplingRate:parseFloat(Jr().OTEL_TRACES_SAMPLE_RATE??"1")}})}catch(e){console.error(e),console.error("Faro initialization failed")}}zT();const qe=Jr(),PN=document.documentElement.lang||"en";Zl.use(ed).use(lh).init(fh({locale:PN,debug:!1,detection:{order:["querystring","htmlTag"],lookupQuerystring:"lang"}}));qe.OTEL_ENABLED==="true"&&IN();const LN=()=>window.location.hostname.includes("toggl.com")?"https://accounts.toggl.com":window.location.origin;AT({dsn:qe.SENTRY_DSN,beforeSend:qT,beforeSendTransaction:KT,environment:qe.SENTRY_ENVIRONMENT??qe.NODE_ENV,release:qe.VERSION,enabled:qe.SENTRY_ENABLED==="true"&&qe.SENTRY_ENVIRONMENT!=="development",allowUrls:[LN()],tracesSampleRate:qe.SENTRY_TRACES_SAMPLE_RATE?parseFloat(`${qe.SENTRY_TRACES_SAMPLE_RATE}`):void 0,integrations:[TT()]});function Dl(){oe.startTransition(()=>{td(document,pu.jsx(dh,{i18n:Zl,children:pu.jsx(VT,{})}))})}window.requestIdleCallback?window.requestIdleCallback(Dl):window.setTimeout(Dl,1);

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.