PageSourceSearch

https://my.eroad.co.nz/5848.myeroad.63cd7fba95e4b51f49e7.js

js eroad.co.nz collected 2026-09-26 07:45:55 UTC 324,339 bytes, 3 lines download raw bytes

1/*! For license information please see 5848.myeroad.63cd7fba95e4b51f49e7.js.LICENSE.txt */
2!function(){try{("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).__faroGitHash_myeroad="5ce3e63ee526711d9fdee9e150f093852f3a7cc4"}catch(e){}}(),function(){try{("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).__faroBundleId_myeroad="10.1.5092-apac"}catch(e){}}();try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="41edef4b-4f0a-4613-952a-af1885ca8c83",e._sentryDebugIdIdentifier="sentry-dbid-41edef4b-4f0a-4613-952a-af1885ca8c83")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"10.1.5092-apac"},(self.webpackChunk_eroad_myeroad=self.webpackChunk_eroad_myeroad||[]).push([[5848],{446:(e,t,n)=>{"use strict";n.d(t,{v:()=>Yt});var r,i,s=class{constructor(e,t){this.processor=e,this.metas=t}forceFlush(){return this.processor.forceFlush()}onStart(e,t){var n;const r=this.metas.value.session;
2(null==r?void 0:r.id)&&(e.attributes["session.id"]=r.id);const i=null!==(n=this.metas.value.user)&&void 0!==n?n:{};i.email&&(e.attributes["user.email"]=i.email),i.id&&(e.attributes["user.id"]=i.id),i.username&&(e.attributes["user.name"]=i.username),i.fullName&&(e.attributes["user.full_name"]=i.fullName),i.roles&&(e.attributes["user.roles"]=i.roles.split(",").map(e=>e.trim())),i.hash&&(e.attributes["user.hash"]=i.hash),this.processor.onStart(e,t)}onEnd(e){this.processor.onEnd(e)}shutdown(){return this.processor.shutdown()}},o=class{constructor(e,t){this.propagator=e,this.shouldOmitTraceContext=t}inject(e,t,n){this.shouldOmitTraceContext()||this.propagator.inject(e,t,n)}extract(e,t,n){return this.propagator.extract(e,t,n)}fields(){return this.propagator.fields()}},a=n(2258),c=n(55266),u=n(36275),l=n(39302),d=n(5150),p=class{constructor(e){this.config=e}export(e,t){const n=(0,d.sJ)(e,l.w9);this.config.api.pushTraces(n),function(e=[],t){for(const i of e){const{scopeSpans:e}=i;for(const i of e){const{scope:e,spans:s=[]}=i;for(const i of s){var n;if(i.kind!==a.i1.SPAN_KIND_CLIENT)continue;const s={traceId:i.traceId.toString(),spanId:i.spanId.toString()},o={};for(const e of i.attributes)o[e.key]=String(Object.values(e.value)[0]);Number.isNaN(i.endTimeUnixNano)||Number.isNaN(i.startTimeUnixNano)||(o.duration_ns=String(Number(i.endTimeUnixNano)-Number(i.startTimeUnixNano)));const u=(null!==(n=null==e?void 0:e.name)&&void 0!==n?n:"").indexOf("-");let l=c.y;var r;(null==e?void 0:e.name)&&(-1===u&&(l=null!==(r=e.name.split("/")[1])&&void 0!==r?r:e.name),u>-1&&(l=null==e?void 0:e.name.substring(u+1))),t.pushEvent(`faro.tracing.${l}`,o,void 0,{spanContext:s,timestampOverwriteMs:Number(i.endTimeUnixNano)/1e6,customPayloadTransformer:e=>{var t,n;return null!=o["faro.action.user.name"]&&null!=o["faro.action.user.parentId"]&&(e.action={name:o["faro.action.user.name"],parentId:o["faro.action.user.parentId"]},null===(t=e.attributes)||void 0===t||delete t["faro.action.user.name"],null===(n=e.attributes)||void 0===n||delete n["faro.action.user.parentId"]),e}})}}}}(n.resourceSpans,this.config.api),t({code:u.V.SUCCESS})}shutdown(){return Promise.resolve(void 0)}},f=n(27511),h=n(3576),m=n(50947),g=n(46922),v=n(33835),b=n(7353);!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"}(r||(r={})),function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(i||(i={}));var y=n(2339);class _{}class S{addCallback(e){}removeCallback(e){}}const w=new class{constructor(){}createGauge(e,t){return E}createHistogram(e,t){return A}createCounter(e,t){return T}createUpDownCounter(e,t){return x}createObservableGauge(e,t){return O}createObservableCounter(e,t){return k}createObservableUpDownCounter(e,t){return C}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}},T=new class extends _{add(e,t){}},E=new class extends _{record(e,t){}},A=new class extends _{record(e,t){}},x=new class extends _{add(e,t){}},k=new class extends S{},O=new class extends S{},C=new class extends S{};function I(){return w}const P=new class{getMeter(e,t,n){return w}};var R=n(71895),L=n(32535);const N="metrics";class D{constructor(){}static getInstance(){return this._instance||(this._instance=new D),this._instance}setGlobalMeterProvider(e){return(0,R.$G)(N,e,L.K.instance())}getMeterProvider(){return(0,R.mS)(N)||P}getMeter(e,t,n){return this.getMeterProvider().getMeter(e,t,n)}disable(){(0,R.kv)(N,L.K.instance())}}const M=D.getInstance(),U=Symbol.for("io.opentelemetry.js.api.logs"),j=globalThis;class ${emit(e){}enabled(){return!1}}const F=new $,q=new class{getLogger(e,t,n){return new $}};class B{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}emit(e){this._getLogger().emit(e)}enabled(e){return this._getLogger().enabled(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):F}}class z{getLogger(e,t,n){var r;return null!==(r=this._getDelegateLogger(e,t,n))&&void 0!==r?r:new B(this,e,t,n)}_getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:q}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getLogger(e,t,n)}}class H{constructor(){this._proxyLoggerProvider=new z}static getInstance(){return this._instance||(this._instance=new H),this._instance}setGlobalLoggerProvider(e){return j[U]?this.getLoggerProvider():(j[U]=(t=e,n=q,e=>1===e?t:n),this._proxyLoggerProvider._setDelegate(e),e);var t,n}getLoggerProvider(){var e,t;return null!==(t=null===(e=j[U])||void 0===e?void 0:e.call(j,1))&&void 0!==t?t:this._proxyLoggerProvider}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete j[U],this._proxyLoggerProvider=new z}}const V=H.getInstance();let K=console.error.bind(console);function J(e,t,n){const r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}const G=(e,t,n)=>{if(!e||!e[t])return void K("no original function "+String(t)+" to wrap");if(!n)return K("no wrapper function"),void K((new Error).stack);const r=e[t];if("function"!=typeof r||"function"!=typeof n)return void K("original object and wrapper must be functions");const i=n(r,t);return J(i,"__original",r),J(i,"__unwrap",()=>{e[t]===i&&J(e,t,r)}),J(i,"__wrapped",!0),J(e,t,i),i},W=(e,t,n)=>{if(!e)return K("must provide one or more modules to patch"),void K((new Error).stack);
2Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{G(e,t,n)})}):K("must provide one or more functions to wrap on modules")},X=(e,t)=>{if(!e||!e[t])return K("no function to unwrap."),void K((new Error).stack);const n=e[t];n.__unwrap?n.__unwrap():K("no original to unwrap to -- has "+String(t)+" already been unwrapped?")},Z=(e,t)=>{if(!e)return K("must provide one or more modules to patch"),void K((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(e=>{t.forEach(t=>{X(e,t)})}):K("must provide one or more functions to unwrap on modules")};function Q(e){e&&e.logger&&("function"!=typeof e.logger?K("new logger isn't a function, not replacing"):K=e.logger)}Q.wrap=G,Q.massWrap=W,Q.unwrap=X,Q.massUnwrap=Z;class Y{_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(e,t,n){this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(n),this._diag=y.s.createComponentLogger({namespace:e}),this._tracer=b.u.getTracer(e,t),this._meter=M.getMeter(e,t),this._logger=V.getLogger(e,t),this._updateMetricInstruments()}_wrap=G;_unwrap=X;_massWrap=W;_massUnwrap=Z;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:t},e)}}}class ee extends Y{constructor(e,t,n){super(e,t,n),this._config.enabled&&this.enable()}}function te(e,t,n){let r,i;try{i=e()}catch(e){r=e}finally{if(t(r,i),r&&!n)throw r;return i}}var ne,re=n(11419),ie=n(4905),se=n(41437);let oe;function ae(e,t,n,r=!0){if(t in n&&"number"==typeof n[t]&&(!r||0!==n[t]))return e.addEvent(t,n[t])}function ce(e,t,n=!1,r,i){if(void 0===r&&(r=0!==t[ne.START_TIME]),n||(ae(e,ne.FETCH_START,t,r),ae(e,ne.DOMAIN_LOOKUP_START,t,r),ae(e,ne.DOMAIN_LOOKUP_END,t,r),ae(e,ne.CONNECT_START,t,r),ae(e,ne.SECURE_CONNECTION_START,t,r),ae(e,ne.CONNECT_END,t,r),ae(e,ne.REQUEST_START,t,r),ae(e,ne.RESPONSE_START,t,r),ae(e,ne.RESPONSE_END,t,r)),!i){const n=t[ne.ENCODED_BODY_SIZE];void 0!==n&&e.setAttribute("http.response_content_length",n);const r=t[ne.DECODED_BODY_SIZE];void 0!==r&&n!==r&&e.setAttribute("http.response_content_length_uncompressed",r)}}function ue(){return"undefined"!=typeof location?location.origin:void 0}function le(e,t,n,r,i=new WeakSet,s){const o=de(e),a=function(e,t,n,r,i,s){const o=(0,se.u5)(t),a=(0,se.u5)(n);let c=r.filter(t=>{const n=(0,se.u5)((0,se.KJ)(t[ne.FETCH_START])),r=(0,se.u5)((0,se.KJ)(t[ne.RESPONSE_END]));return t.initiatorType.toLowerCase()===(s||"xmlhttprequest")&&t.name===e&&n>=o&&r<=a});return c.length>0&&(c=c.filter(e=>!i.has(e))),c}(e=o.toString(),t,n,r,i,s);if(0===a.length)return{mainRequest:void 0};if(1===a.length)return{mainRequest:a[0]};const c=function(e){return e.slice().sort((e,t)=>{const n=e[ne.FETCH_START],r=t[ne.FETCH_START];return n>r?1:n<r?-1:0})}(a);if(o.origin!==ue()&&c.length>1){let e=c[0],t=function(e,t,n){const r=(0,se.u5)(n),i=(0,se.u5)((0,se.KJ)(t));let s,o=e[1];const a=e.length;for(let t=1;t<a;t++){const n=e[t],a=(0,se.u5)((0,se.KJ)(n[ne.FETCH_START])),c=r-(0,se.u5)((0,se.KJ)(n[ne.RESPONSE_END]));a>=i&&(!s||c<s)&&(s=c,o=n)}return o}(c,e[ne.RESPONSE_END],n);const r=e[ne.RESPONSE_END];return t[ne.FETCH_START]<r&&(t=e,e=void 0),{corsPreFlightRequest:e,mainRequest:t}}return{mainRequest:a[0]}}function de(e){if("function"==typeof URL)return new URL(e,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);const t=(oe||(oe=document.createElement("a")),oe);return t.href=e,t}function pe(e,t){let n=t||[];return("string"==typeof n||n instanceof RegExp)&&(n=[n]),de(e).origin===ue()||n.some(t=>(0,ie.f)(e,t))}!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.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"}(ne||(ne={}));var fe,he=n(13241);!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"}(fe||(fe={}));var me=n(23202);const ge=y.s.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"});const ve=new TextEncoder;function be(e){return ve.encode(e).byteLength}const ye={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0};let _e;function Se(){if(void 0===_e){const e=(0,me.f7)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(_e={}
2,e.forEach(e=>{_e[e]=!0})):_e=ye}return _e}const we={"https:":"443","http:":"80"},Te="0.221.0";class Ee extends ee{component="xml-http-request";version=Te;moduleName=this.component;_tasksCount=0;_xhrMem=new WeakMap;_usedResources=new WeakSet;constructor(e={}){super("@opentelemetry/instrumentation-xml-http-request",Te,e)}init(){}_addHeaders(e,t){if(!pe(de(t).href,this.getConfig().propagateTraceHeaderCorsUrls)){const e={};return g.$.inject(v._.active(),e),void(Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}const n={};g.$.inject(v._.active(),n),Object.keys(n).forEach(t=>{e.setRequestHeader(t,String(n[t]))})}_addChildSpan(e,t){v._.with(b.u.setSpan(v._.active(),e),()=>{const e=this.tracer.startSpan("CORS Preflight",{startTime:t[ne.FETCH_START]});ce(e,t,this.getConfig().ignoreNetworkEvents,void 0,!0),e.end(t[ne.RESPONSE_END])})}_addFinalSpanAttributes(e,t){t.status&&e.setAttribute(he.ORx,t.status)}_applyAttributesAfterXHR(e,t){const n=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof n&&te(()=>n(e,t),e=>{e&&this._diag.error("applyCustomAttributesOnSpan",e)},!0)}_addResourceObserver(e,t){const n=this._xhrMem.get(e);n&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(n.createdResources={observer:new PerformanceObserver(e=>{const r=e.getEntries(),i=de(t);r.forEach(e=>{"xmlhttprequest"===e.initiatorType&&e.name===i.href&&n.createdResources&&n.createdResources.entries.push(e)})}),entries:[]},n.createdResources.observer.observe({entryTypes:["resource"]}))}_clearResources(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(re.ug.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}_findResourceAndAddNetworkEvents(e,t,n,r,i){if(!(n&&r&&i&&e.createdResources))return;let s=e.createdResources.entries;s&&s.length||(s=re.ug.getEntriesByType("resource"));const o=le(de(n).href,r,i,s,this._usedResources);if(o.mainRequest){const e=o.mainRequest;this._markResourceAsUsed(e);const n=o.corsPreFlightRequest;n&&(this._addChildSpan(t,n),this._markResourceAsUsed(n)),ce(t,e,this.getConfig().ignoreNetworkEvents,void 0,!0)}}_cleanPreviousSpanInformation(e){const t=this._xhrMem.get(e);if(t){const n=t.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(e)}}_createSpan(e,t,n){const i=de(t);if((0,ie.K)(i.href,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");const s={},o=n,a=function(e){const t=Se(),n=e.toUpperCase();return n in t?n:"_OTHER"}(n),c=a;s[he.n4R]=a,a!==o&&(s[he.nWg]=o),s[he.WQZ]=i.toString(),s[he.Tu$]=i.hostname;const u=function(e){const t=Number(e.port||we[e.protocol]);return t&&!isNaN(t)?t:void 0}(i);u&&(s[he.A2j]=u);const l=this.tracer.startSpan(c,{kind:r.CLIENT,attributes:s});return l.addEvent(fe.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:l,spanUrl:t}),l}_markResourceAsUsed(e){this._usedResources.add(e)}_patchOpen(){return e=>{const t=this;return function(...n){if(!t._isEnabled)return e.apply(this,n);const r=n[0],i=n[1];return t._createSpan(this,i,r),e.apply(this,n)}}}_patchSend(){const e=this;function t(t,n,r,s){const o=e._xhrMem.get(n);if(!o)return;if(o.status=n.status,o.statusText=n.statusText,e._xhrMem.delete(n),o.span){const t=o.span;e._applyAttributesAfterXHR(t,n),r?s&&(t.setStatus({code:i.ERROR,message:s}),t.setAttribute(he.oJb,s)):o.status&&o.status>=400&&(t.setStatus({code:i.ERROR}),t.setAttribute(he.oJb,String(o.status)))}const a=(0,se._5)(),c=Date.now();setTimeout(()=>{!function(t,n,r,i){const s=n.callbackToRemoveEvents;"function"==typeof s&&s();const{span:o,spanUrl:a,sendStartTime:c}=n;o&&(e._findResourceAndAddNetworkEvents(n,o,a,c,r),o.addEvent(t,i),e._addFinalSpanAttributes(o,n),o.end(i),e._tasksCount--),e._clearResources()}(t,o,a,c)},300)}function n(){t(fe.EVENT_ERROR,this,!0,"error")}function r(){t(fe.EVENT_ABORT,this,!1)}function s(){t(fe.EVENT_TIMEOUT,this,!0,"timeout")}function o(){this.status<299?t(fe.EVENT_LOAD,this,!1):t(fe.EVENT_ERROR,this,!1)}return t=>function(...i){if(!e._isEnabled)return t.apply(this,i);const a=e._xhrMem.get(this);if(!a)return t.apply(this,i);const c=a.span,u=a.spanUrl;if(c&&u){if(e.getConfig().measureRequestSize&&i?.[0]){const e=(l=i[0],"undefined"!=typeof Document&&l instanceof Document?(new XMLSerializer).serializeToString(document).length:"string"==typeof l?be(l):l instanceof Blob?l.size:l instanceof FormData?function(e){let t=0;for(const[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}(l):l instanceof URLSearchParams?be(l.toString()):void 0!==l.byteLength?l.byteLength:void ge.warn("unknown body type"));void 0!==e&&c.setAttribute("http.request.body.size",e)}
2v._.with(b.u.setSpan(v._.active(),c),()=>{e._tasksCount++,a.sendStartTime=(0,se._5)(),c.addEvent(fe.METHOD_SEND),this.addEventListener("abort",r),this.addEventListener("error",n),this.addEventListener("load",o),this.addEventListener("timeout",s),a.callbackToRemoveEvents=()=>{!function(t){t.removeEventListener("abort",r),t.removeEventListener("error",n),t.removeEventListener("load",o),t.removeEventListener("timeout",s);const i=e._xhrMem.get(t);i&&(i.callbackToRemoveEvents=void 0)}(this),a.createdResources&&a.createdResources.observer.disconnect()},e._addHeaders(this,u),e._addResourceObserver(this,u)})}var l;return t.apply(this,i)}}enable(){if(!this._isEnabled){if(this._isXhrPatched)return this._diag.debug("reactivating existing patch on",this.moduleName,this.version),void(this._isEnabled=!0);try{this._diag.debug("applying patch to",this.moduleName,this.version),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend()),this._isXhrPatched=!0,this._isEnabled=!0}catch(e){this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.warn("Failed to patch globalThis.XMLHttpRequest; instrumentation will not be enabled. Another script may have locked globalThis.XMLHttpRequest via Object.defineProperty.",e)}}}disable(){this._isEnabled&&(this._isEnabled=!1,this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}}var Ae=class extends Ee{constructor(e={}){super(e),this.parentCreateSpan=this._createSpan.bind(this)}_patchOpen(){return e=>{const t=this;return function(...n){let r;try{const e=n[0];let i=(0,f.iM)(n[1]);r=t.parentCreateSpan(this,i,e)}catch(e){h.P.internalLogger.error(e)}const i=h.P.api.getActiveUserAction();return r&&i&&(null==i?void 0:i.getState())===m.j.Started&&(r.setAttribute("faro.action.user.name",i.name),r.setAttribute("faro.action.user.parentId",i.parentId)),e.apply(this,n)}}}};function xe(e,t){null!=t&&(0===t||t>=400&&t<600)&&e.setStatus({code:i.ERROR})}function ke(e){return(t,n,r)=>{!function(e,t,n){xe(e,n instanceof Error?0:n.status)}(t,0,r),null==e||e(t,n,r)}}function Oe(e){return(t,n)=>{!function(e,t){xe(e,t.status)}(t,n),null==e||e(t,n)}}function Ce(e){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(e)}function Ie(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ce(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ce(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach(function(t){Ie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Le=y.s.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});const Ne=new TextEncoder;function De(e){return Ne.encode(e).byteLength}const Me={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0};let Ue;const je={"https:":"443","http:":"80"},$e="0.221.0",Fe="undefined"!=typeof PerformanceObserver;class qe extends ee{component="fetch";version=$e;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;constructor(e={}){super("@opentelemetry/instrumentation-fetch",$e,e)}init(){}_addChildSpan(e,t){const n=this.tracer.startSpan("CORS Preflight",{startTime:t[ne.FETCH_START]},b.u.setSpan(v._.active(),e));ce(n,t,this.getConfig().ignoreNetworkEvents,void 0,!0),n.end(t[ne.RESPONSE_END])}_addFinalSpanAttributes(e,t){const n=de(t.url);e.setAttribute(he.ORx,t.status),e.setAttribute(he.Tu$,n.hostname);const r=function(e){const t=Number(e.port||je[e.protocol]);return t&&!isNaN(t)?t:void 0}(n);r&&e.setAttribute(he.A2j,r)}_addHeaders(e,t){if(!pe(t,this.getConfig().propagateTraceHeaderCorsUrls)){const e={};return g.$.inject(v._.active(),e),void(Object.keys(e).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}if(e instanceof Request)g.$.inject(v._.active(),e.headers,{set:(e,t,n)=>e.set(t,"string"==typeof n?n:String(n))});else{const t=new Headers(e.headers);g.$.inject(v._.active(),t,{set:(e,t,n)=>e.set(t,"string"==typeof n?n:String(n))}),e.headers=t}}_clearResources(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(e,t={}){if(ie.K(e,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");const n={},i=t.method,s=function(e){const t=function(){if(void 0===Ue){const e=(0,me.f7)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");e&&e.length>0?(Ue={}
2,e.forEach(e=>{Ue[e]=!0})):Ue=Me}return Ue}(),n=e.toUpperCase();return n in t?n:"_OTHER"}(t.method||"GET"),o=s;return n[he.n4R]=s,s!==i&&(n[he.nWg]=i),n[he.WQZ]=e,this.tracer.startSpan(o,{kind:r.CLIENT,attributes:n})}_findResourceAndAddNetworkEvents(e,t,n){let r=t.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType("resource")}const i=le(t.spanUrl,t.startTime,n,r,this._usedResources,"fetch");if(i.mainRequest){const t=i.mainRequest;this._markResourceAsUsed(t);const n=i.corsPreFlightRequest;n&&(this._addChildSpan(e,n),this._markResourceAsUsed(n)),ce(e,t,this.getConfig().ignoreNetworkEvents,void 0,!0)}}_markResourceAsUsed(e){this._usedResources.add(e)}_endSpan(e,t,n){const r=se.lg(Date.now()),s=se._5();this._addFinalSpanAttributes(e,n),n.status>=400&&(e.setStatus({code:i.ERROR}),e.setAttribute(he.oJb,String(n.status))),setTimeout(()=>{t.observer?.disconnect(),this._findResourceAndAddNetworkEvents(e,t,s),this._tasksCount--,this._clearResources(),e.end(r)},300)}_patchConstructor(){return e=>{const t=this;return function(...n){if(!t._isEnabled)return e.apply(this,n);const r=this,i=de(n[0]instanceof Request?n[0].url:String(n[0])).href;let s;s=n[0]instanceof Request?null!=n[1]?new Request(n[0],n[1]):n[0]:n[1]||{};const o=t._createSpan(i,s);if(!o)return e.apply(this,n);const a=t._prepareSpanData(i);function c(e,n){t._applyAttributesAfterFetch(e,s,n),t._endSpan(e,a,{status:n.status||0,statusText:n.message,url:i})}function u(e,n){t._applyAttributesAfterFetch(e,s,n),n.status>=200&&n.status<400?t._endSpan(e,a,n):t._endSpan(e,a,{status:n.status,statusText:n.statusText,url:i})}function l(e,n){try{const t=n.clone().body;if(t){const r=t.getReader(),i=()=>{r.read().then(({done:t})=>{t?u(e,n):i()},t=>{c(e,t)})};i()}else u(e,n)}catch(n){t._diag.error("Failed to read fetch response body",n),t._endSpan(e,a,{status:0,url:i})}return n}function d(e,n){try{c(e,n)}catch(r){t._diag.error("Failed to end span on fetch error",r),t._endSpan(e,a,{status:n.status||0,url:i})}throw n}return t.getConfig().measureRequestSize&&function(...e){if(e[0]instanceof URL||"string"==typeof e[0]){const n=e[1];if(!n?.body)return Promise.resolve();if(n.body instanceof ReadableStream){const{body:e,length:t}=function(e){if(!e.pipeThrough)return Le.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let t,n=0;const r=new Promise(e=>{t=e}),i=new TransformStream({start(){},async transform(e,t){const r=await e;n+=r.byteLength,t.enqueue(e)},flush(){t(n)}});return{body:e.pipeThrough(i),length:r}}(n.body);return n.body=e,t}return Promise.resolve((t=n.body,"undefined"!=typeof Document&&t instanceof Document?(new XMLSerializer).serializeToString(document).length:"string"==typeof t?De(t):t instanceof Blob?t.size:t instanceof FormData?function(e){let t=0;for(const[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}(t):t instanceof URLSearchParams?De(t.toString()):void 0!==t.byteLength?t.byteLength:void Le.warn("unknown body type")))}var t;{const t=e[0];return t?.body?t.clone().text().then(e=>De(e)):Promise.resolve()}}(...n).then(e=>{e&&o.setAttribute("http.request.body.size",e)}).catch(e=>{t._diag.warn("getFetchBodyLength",e)}),v._.with(b.u.setSpan(v._.active(),o),()=>(t._callRequestHook(o,s),t._addHeaders(s,i),t._tasksCount++,e.apply(r,s instanceof Request?[s]:[i,s]).then(l.bind(r,o),d.bind(r,o))))}}}_applyAttributesAfterFetch(e,t,n){const r=this.getConfig().applyCustomAttributesOnSpan;r&&te(()=>r(e,t,n),e=>{e&&this._diag.error("applyCustomAttributesOnSpan",e)},!0)}_callRequestHook(e,t){const n=this.getConfig().requestHook;n&&te(()=>n(e,t),e=>{e&&this._diag.error("requestHook",e)},!0)}_prepareSpanData(e){const t=se._5(),n=[];if("function"!=typeof PerformanceObserver)return{entries:n,startTime:t,spanUrl:e};const r=new PerformanceObserver(t=>{t.getEntries().forEach(t=>{"fetch"===t.initiatorType&&t.name===e&&n.push(t)})});return r.observe({entryTypes:["resource"]}),{entries:n,observer:r,startTime:t,spanUrl:e}}enable(){if(Fe){if(!this._isEnabled){if(this._isFetchPatched)return this._diag.debug("fetch constructor already patched"),void(this._isEnabled=!0);try{this._wrap(globalThis,"fetch",this._patchConstructor()),this._isFetchPatched=!0,this._isEnabled=!0}catch(e){this._diag.warn("Failed to patch globalThis.fetch; instrumentation will not be enabled. Another script may have locked globalThis.fetch via Object.defineProperty.",e)}}}else this._diag.warn("this instrumentation is intended for web usage only, it does not instrument server-side fetch()")}disable(){Fe&&this._isEnabled&&(this._isEnabled=!1,this._usedResources=new WeakSet)}}const Be=["fetchInstrumentationOptions","xhrInstrumentationOptions"];function ze(e={}){const{fetchInstrumentationOptions:t,xhrInstrumentationOptions:n}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Be),i=function(e,t){return Re(Re(Re({},t),{},{ignoreNetworkEvents:!0},e),{},{applyCustomAttributesOnSpan:ke(null==e?void 0:e.applyCustomAttributesOnSpan),requestHook:He(null==e?void 0:e.requestHook)})}(t,r),s=function(e,t){return Re(Re(Re({},t),{},{ignoreNetworkEvents:!0},e),{},{applyCustomAttributesOnSpan:Oe(null==e?void 0:e.applyCustomAttributesOnSpan)})}(n,r);return[new qe(i),new Ae(s)]}function He(e){return(t,n)=>{const r=h.P.api.getActiveUserAction();r&&(null==r?void 0:r.getState())===m.j.Started&&(t.setAttribute("faro.action.user.n
2ame",r.name),t.setAttribute("faro.action.user.parentId",r.parentId)),null==e||e(t,n)}}var Ve;function Ke(e={}){var t;return"true"===(null===(t=e.attributes)||void 0===t?void 0:t.isSampled)}function Je(e={}){return Ke(e)?Ve.RECORD_AND_SAMPLED:Ve.NOT_RECORD}!function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(Ve||(Ve={}));var Ge=n(9142),We=n(10785),Xe=n(99408),Ze=n(27840),Qe=n(31720);let Ye;function et(){if(void 0===Ye)try{const e=globalThis.process.argv0;Ye=e?`unknown_service:${e}`:"unknown_service"}catch{Ye="unknown_service"}return Ye}const tt=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then;class nt{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,t){const n=new nt({},t);return n._rawAttributes=st(e),n._asyncAttributesPending=e.filter(([e,t])=>tt(t)).length>0,n}constructor(e,t){const n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([e,t])=>(tt(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=st(this._rawAttributes),this._schemaUrl=function(e){if("string"==typeof e||void 0===e)return e;y.s.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}(t?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[t,n]=this._rawAttributes[e];this._rawAttributes[e]=[t,tt(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&y.s.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[t,n]of this._rawAttributes)tt(n)?y.s.debug(`Unsettled resource attribute ${t} skipped`):null!=n&&(e[t]??=n);return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){if(null==e)return this;const t=function(e,t){const n=e?.schemaUrl,r=t?.schemaUrl;return void 0===n||""===n?r:void 0===r||""===r||n===r?n:void y.s.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',n,r)}(this,e),n=t?{schemaUrl:t}:void 0;return nt.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],n)}}function rt(e,t){return nt.FromAttributeList(Object.entries(e),t)}function it(){return rt({[he.UX4]:et(),[he.E$0]:Qe.q[he.E$0],[he.Jqu]:Qe.q[he.Jqu],[he.aJA]:Qe.q[he.aJA]})}function st(e){return e.map(([e,t])=>tt(t)?[e,t.catch(t=>{y.s.debug("promise rejection for resource attribute: %s - %s",e,t)})]:[e,t])}var ot=n(8045);class at{shouldSample(){return{decision:Ve.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class ct{shouldSample(){return{decision:Ve.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}var ut,lt=n(71664),dt=n(14138),pt=n(1433);class ft{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||((0,pt.s)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new at),this._remoteParentSampled=e.remoteParentSampled??new at,this._remoteParentNotSampled=e.remoteParentNotSampled??new ct,this._localParentSampled=e.localParentSampled??new at,this._localParentNotSampled=e.localParentNotSampled??new ct}shouldSample(e,t,n,r,i,s){const o=b.u.getSpanContext(e);return o&&(0,lt.YA)(o)?o.isRemote?o.traceFlags&dt.X.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,r,i,s):this._remoteParentNotSampled.shouldSample(e,t,n,r,i,s):o.traceFlags&dt.X.SAMPLED?this._localParentSampled.shouldSample(e,t,n,r,i,s):this._localParentNotSampled.shouldSample(e,t,n,r,i,s):this._root.shouldSample(e,t,n,r,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class ht{_ratio;_upperBound;constructor(e=0){this._ratio=this._normalize(e),this._upperBound=1===this._ratio?4294967296:Math.floor(4294967295*this._ratio)}
2shouldSample(e,t){return{decision:(0,lt.hX)(t)&&this._accumulate(t)<this._upperBound?Ve.RECORD_AND_SAMPLED:Ve.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<32;n+=8){let r=0;for(let t=0;t<8;t++){const i=e.charCodeAt(n+t);r=r<<4|(i<58?i-48:i<71?i-55:i-87)}t=(t^r)>>>0}return t}}function mt(){const e=(0,me.HF)("OTEL_TRACES_SAMPLER")??ut.ParentBasedAlwaysOn;switch(e){case ut.AlwaysOn:return new at;case ut.AlwaysOff:return new ct;case ut.ParentBasedAlwaysOn:return new ft({root:new at});case ut.ParentBasedAlwaysOff:return new ft({root:new ct});case ut.TraceIdRatio:return new ht(gt());case ut.ParentBasedTraceIdRatio:return new ft({root:new ht(gt())});default:return y.s.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${ut.ParentBasedAlwaysOn}".`),new ft({root:new at})}}function gt(){const e=(0,me.Jk)("OTEL_TRACES_SAMPLER_ARG");return null==e?(y.s.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1):e<0||e>1?(y.s.error(`OTEL_TRACES_SAMPLER_ARG=${e} was given, but it is out of range ([0..1]), defaulting to 1.`),1):e}!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"}(ut||(ut={}));const vt=1/0;var bt,yt=n(67177);!function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(bt||(bt={}));var _t=n(65890),St=n(95497);const wt=Symbol.for("nodejs.util.inspect.custom");function Tt(e){const t={};for(const[n,r]of e.getRawAttributes())"function"!=typeof r?.then&&null!=r&&(t[n]??=r);return t}function Et(e,t,n,r,i){if("number"==typeof n&&n<0){const t=`[${e}]`;return r?.stylize?r.stylize(t,"special"):t}return"function"==typeof i&&r?`${e} ${i(t,{...r,depth:null==r.depth?r.depth:r.depth-1})}`:t}class At{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:i.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){const t=Date.now();if(this._spanContext=e.spanContext,this._performanceStartTime=re.ug.now(),this._performanceOffset=t-(this._performanceStartTime+re.ug.timeOrigin),this._startTimeProvided=null!=e.startTime,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,e.links)for(const t of e.links)this.addLink(t);this.startTime=this._getTime(e.startTime??t),this.resource=e.resource,this.instrumentationScope=e.scope,this._recordEndMetrics=e.recordEndMetrics,null!=e.attributes&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,t){if(null==t||this._isSpanEnded())return this;if(0===e.length)return y.s.warn(`Invalid attribute key: ${e}`),this;if(!(0,St.m)(t))return y.s.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:n}=this._spanLimits,r=!Object.prototype.hasOwnProperty.call(this.attributes,e);return void 0!==n&&this._attributesCount>=n&&r?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),r&&this._attributesCount++,this)}setAttributes(e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setAttribute(t,e[t]);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;const{eventCountLimit:r}=this._spanLimits;if(0===r)return y.s.warn("No events allowed."),this._droppedEventsCount++,this;void 0!==r&&this.events.length>=r&&(0===this._droppedEventsCount&&y.s.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,se.Ir)(t)&&((0,se.Ir)(n)||(n=t),t=void 0);const i=(0,St.L)(t),{attributePerEventCountLimit:s}=this._spanLimits,o={};let a=0,c=0;for(const e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;const t=i[e];void 0!==s&&c>=s?a++:(o[e]=this._truncateToSize(t),c++)}return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:a}),this}addLink(e){if(this._isSpanEnded())return this;const{linkCountLimit:t}=this._spanLimits;if(0===t)return this._droppedLinksCount++,this;void 0!==t&&this.links.length>=t&&(0===this._droppedLinksCount&&y.s.debug("Dropping extra links."),this.links.shift(),this._droppedLinksCount++);const{attributePerLinkCountLimit:n}=this._spanLimits,r=(0,St.L)(e.attributes),i={};let s=0,o=0;for(const e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;const t=r[e];void 0!==n&&o>=n?s++:(i[e]=this._truncateToSize(t),o++)}const a={context:e.context};return o>0&&(a.attributes=i),s>0&&(a.droppedAttributesCount=s),this.links.push(a),this}addLinks(e){for(const t of e)this.addLink(t);return this}setStatus(e){if(this._isSpanEnded())return this;if(e.code===i.UNSET)return this;if(this.status.code===i.OK)return this;const t={code:e.code};return e.code===i.ERROR&&("string"==typeof e.message?t.message=e.message:null!=e.message&&y.s.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`)),this.status=t,this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){this._isSpanEnded()?y.s.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`):(this.endTime=this._getTime(e),this._duration=(0,se.W5)(this.startTime,this.endTime),this._duration[0]<0&&(y.s.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&&y.s.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&y.s.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this))}_getTime(e){if("number"==typeof e&&e<=re.ug.now())return(0,se._5)(e+this._performanceOffset);if("number"==typeof e)return(0,se.lg)(e);if(e instanceof Date)return(0,se.lg)(e.getTime());if((0,se.VL)(e))return e;if(this._startTimeProvided)return(0,se.lg)(Date.now());const t=re.ug.now()-this._performanceStartTime;return(0,se.mw)(this.startTime,(0,se.lg)(t))}isRecording(){return!1===this._ended}recordException(e,t){const n={};"string"==typeof e?n[he.wLW]=e:e&&(e.code?n[he.d62]=e.code.toString():e.name&&(n[he.d62]=e.name),e.message&&(n[he.wLW]=e.message),e.stack&&(n[he.MbS]=e.stack)),n[he.d62]||n[he.wLW]?this.addEvent("exception",n,t):y.s.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);y.s.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){const t=this._attributeValueLengthLimit;return t<=0?(y.s.warn(`Attribute value limit must be positive, got ${t}`),e):"string"==typeof e?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>"string"==typeof e?this._truncateToLimitUtil(e,t):e):e}[wt](e,t,n){return Et("SpanImpl",{name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:Tt(this.resource)}},e,t,n)}}const xt="otel.component.name",kt="otel.component.type",Ot="otel.span.parent.origin",Ct="otel.span.sampling_result";class It{startedSpans;liveSpans;constructor(e){this.startedSpans=e.createCounter("otel.sdk.span.started",{unit:"{span}",description:"The number of created spans."}),this.liveSpans=e.createUpDownCounter("otel.sdk.span.live",{unit:"{span}",description:"The number of currently live spans."})}startSpan(e,t){const n=function(e){switch(e){case Ve.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case Ve.RECORD:return"RECORD_ONLY";case Ve.NOT_RECORD:return"DROP"}}(t);if(this.startedSpans.add(1,{[Ot]:(r=e,r?r.isRemote?"remote":"local":"none"),[Ct]:n}),t===Ve.NOT_RECORD)return()=>{};var r;const i={[Ct]:n};return this.liveSpans.add(1,i),()=>{this.liveSpans.add(-1,i)}}}class Pt{_sampler;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(e,t){this.instrumentationScope=e,this._sampler=t.sampler,this._spanLimits=t.spanLimits,this._resource=t.resource,this._idGenerator=t.idGenerator,this._spanProcessor=t.spanProcessor;const n=t.meterProvider.getMeter("@opentelemetry/sdk-trace","2.10.0");this._tracerMetrics=new It(n)}startSpan(e,t={},n=v._.active()){t.root&&(n=b.u.deleteSpan(n));const i=b.u.getSpan(n);if((0,_t.Zf)(n))return y.s.debug("Instrumentation suppressed, returning Noop Span"),b.u.wrapSpanContext(yt.dM);const s=i?.spanContext(),o=this._idGenerator.generateSpanId();let a,c,u;s&&b.u.isSpanContextValid(s)?(c=s.traceId,u=s.traceState,a=s):c=this._idGenerator.generateTraceId();const l=t.kind??r.INTERNAL,d=(t.links??[]).map(e=>({context:e.context,attributes:(0,St.L)(e.attributes)})),p=(0,St.L)(t.attributes),f=this._sampler.shouldSample(n,c,e,l,p,d),h=this._tracerMetrics.startSpan(s,f.decision);u=f.traceState??u;const m={traceId:c,spanId:o,traceFlags:f.decision===bt.RECORD_AND_SAMPLED?dt.X.SAMPLED:dt.X.NONE,traceState:u};if(f.decision===bt.NOT_RECORD)return y.s.debug("Recording is off, prop
2agating context in a non-recording span"),b.u.wrapSpanContext(m);const g=(0,St.L)(Object.assign(p,f.attributes));return new At({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:m,name:e,kind:l,links:d,parentSpanContext:a,attributes:g,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:h})}startActiveSpan(e,t,n,r){let i,s,o;if(arguments.length<2)return;2===arguments.length?o=t:3===arguments.length?(i=t,o=n):(i=t,s=n,o=r);const a=s??v._.active(),c=this.startSpan(e,i,a),u=b.u.setSpan(a,c);return v._.with(u,o,void 0,c)}[wt](e,t,n){return Et("Tracer",{instrumentationScope:this.instrumentationScope,resource:{attributes:Tt(this._resource)},spanLimits:this._spanLimits},e,t,n)}}class Rt{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){const e=[];for(const t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(e=>{(0,pt.s)(e||new Error("MultiSpanProcessor: forceFlush failed")),t()})})}onStart(e,t){for(const n of this._spanProcessors)n.onStart(e,t)}onEnding(e){for(const t of this._spanProcessors)t.onEnding&&t.onEnding(e)}onEnd(e){for(const t of this._spanProcessors)t.onEnd(e)}shutdown(){const e=[];for(const t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}}const Lt=new Uint8Array(16),Nt=new Uint8Array(8),Dt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Mt(e){for(let t=0;t<e.length;t++)e[t]=256*Math.random()>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function Ut(e){let t="";for(let n=0;n<e.length;n++)t+=Dt[e[n]];return t}class jt{generateTraceId(){return Mt(Lt),Ut(Lt)}generateSpanId(){return Mt(Nt),Ut(Nt)}}var $t;!function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"}($t||($t={}));class Ft{_resource;_activeSpanProcessor;_forceFlushTimeoutMillis;_tracerOptions;_tracers=new Map;constructor(e={}){this._forceFlushTimeoutMillis=e.forceFlushTimeoutMillis??3e4,this._resource=e.resource??it();const t=e.spanProcessors??[];this._activeSpanProcessor=new Rt(t),this._tracerOptions={resource:this._resource,sampler:e.sampler??new ft({root:new at}),spanLimits:{attributeCountLimit:e.spanLimits?.attributeCountLimit??128,attributeValueLengthLimit:e.spanLimits?.attributeValueLengthLimit??1/0,eventCountLimit:e.spanLimits?.eventCountLimit??128,linkCountLimit:e.spanLimits?.linkCountLimit??128,attributePerEventCountLimit:e.spanLimits?.attributePerEventCountLimit??128,attributePerLinkCountLimit:e.spanLimits?.attributePerLinkCountLimit??128},idGenerator:e.idGenerator||new jt,spanProcessor:this._activeSpanProcessor,meterProvider:e.meterProvider??{getMeter:()=>I()}}}getTracer(e,t,n){const r=`${e}@${t||""}:${n?.schemaUrl||""}`;return this._tracers.has(r)||this._tracers.set(r,new Pt({name:e,version:t,schemaUrl:n?.schemaUrl},this._tracerOptions)),this._tracers.get(r)}forceFlush(){const e=this._forceFlushTimeoutMillis,t=this._activeSpanProcessor._spanProcessors.map(t=>new Promise(n=>{let r;const i=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${e} ms`)),r=$t.timeout},e);t.forceFlush().then(()=>{clearTimeout(i),r!==$t.timeout&&(r=$t.resolved,n(r))}).catch(e=>{clearTimeout(i),r=$t.error,n(e)})}));return new Promise((e,n)=>{Promise.all(t).then(t=>{const r=t.filter(e=>e!==$t.resolved);r.length>0?n(r):e()}).catch(e=>n([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[wt](e,t,n){const r=this._activeSpanProcessor._spanProcessors;return Et("TracerProvider",{resource:{attributes:Tt(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:r.map(e=>e.constructor?.name??"SpanProcessor")},e,t,n)}}class qt extends Ft{constructor(e={}){const t=(0,ot.h)({},{sampler:mt(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,me.Jk)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,me.Jk)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,me.Jk)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,me.Jk)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,me.Jk)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,me.Jk)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,me.Jk)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,me.Jk)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}},function(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??(0,me.Jk)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??
2(0,me.Jk)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??(0,me.Jk)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,me.Jk)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??vt,Object.assign({},e,{spanLimits:t})}(e));delete t.generalLimits,super(t)}}var Bt=n(98902);class zt{_enabled=!1;_currentContext=Bt.l;_bindFunction(e=Bt.l,t){const n=this,r=function(...r){return n.with(e,()=>t.apply(this,r))};return Object.defineProperty(r,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r}active(){return this._currentContext}bind(e,t){return void 0===e&&(e=this.active()),"function"==typeof t?this._bindFunction(e,t):t}disable(){return this._currentContext=Bt.l,this._enabled=!1,this}enable(){return this._enabled||(this._enabled=!0,this._currentContext=Bt.l),this}with(e,t,n,...r){const i=this._currentContext;this._currentContext=e||Bt.l;try{return t.call(n,...r)}finally{this._currentContext=i}}}var Ht=n(22532),Vt=n(48698);class Kt extends qt{constructor(e={}){super(e)}register(e={}){var t;b.u.setGlobalTracerProvider(this),null!==(t=e.propagator)&&(void 0!==t?g.$.setGlobalPropagator(t):g.$.setGlobalPropagator(new Ht.n({propagators:[new Ge.lm,new Vt.t]}))),function(e){if(null!==e){if(void 0===e){const e=new zt;return e.enable(),void v._.setGlobalContextManager(e)}e.enable(),v._.setGlobalContextManager(e)}}(e.contextManager)}}var Jt=n(26514);const Gt=new Map;class Wt{processedSpans;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(e,t,n){const r=Gt.get(e)??0;if(Gt.set(e,r+1),this.standardAttrs={[kt]:e,[xt]:`${e}/${r}`},this.droppedAttrs={...this.standardAttrs,[he.oJb]:"queue_full"},this.processedSpans=t.createCounter("otel.sdk.processor.span.processed",{unit:"{span}",description:"The number of spans for which the processing has finished, either successful or failed."}),n){const{capacity:e,getQueueSize:r}=n;t.createUpDownCounter("otel.sdk.processor.span.queue.capacity",{unit:"{span}",description:"The maximum number of spans the queue of a given instance of an SDK span processor can hold."}).add(e,this.standardAttrs),this.queueSize=t.createObservableUpDownCounter("otel.sdk.processor.span.queue.size",{unit:"{span}",description:"The number of spans in the queue of a given instance of an SDK span processor."}),this.queueSizeCallback=e=>e.observe(r(),this.standardAttrs),this.queueSize.addCallback(this.queueSizeCallback)}}dropSpans(e){this.processedSpans.add(e,this.droppedAttrs)}finishSpans(e,t){if(!t)return void this.processedSpans.add(e,this.standardAttrs);const n={...this.standardAttrs,[he.oJb]:t.name};this.processedSpans.add(e,n)}shutdown(){this.queueSize&&this.queueSizeCallback&&this.queueSize.removeCallback(this.queueSizeCallback)}}class Xt{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_metrics;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e){this._exporter=e.exporter,this._maxExportBatchSize=e.maxExportBatchSize??512,this._maxQueueSize=e.maxQueueSize??2048,this._scheduledDelayMillis=e.scheduledDelayMillis??5e3,this._exportTimeoutMillis=e.exportTimeoutMillis??3e4,this._shutdownOnce=new Jt.I(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(y.s.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize);const t=e.selfObsMeterProvider?e.selfObsMeterProvider.getMeter("@opentelemetry/sdk-trace"):I();this._metrics=new Wt("batching_span_processor",t,{capacity:this._maxQueueSize,getQueueSize:()=>this._finishedSpans.length})}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||0!==(e.spanContext().traceFlags&dt.X.SAMPLED)&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>(this._metrics.shutdown(),this._exporter.shutdown()))}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize)return 0===this._droppedSpansCount&&y.s.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++,void this._metrics.dropSpans(1);this._droppedSpansCount>0&&(y.s.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>
2{const n=[];for(let e=0,t=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise((e,t)=>{const n=setTimeout(()=>{t(new Error("Timeout"))},this._exportTimeoutMillis);v._.with((0,_t.M1)(v._.active()),()=>{let r;this._finishedSpans.length<=this._maxExportBatchSize?(r=this._finishedSpans,this._finishedSpans=[]):r=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(r,i=>{clearTimeout(n),this._metrics.finishSpans(r.length,i.error),i.code===u.V.SUCCESS?e():t(i.error??new Error("BatchSpanProcessor: span export failed"))});let s=null;for(let e=0,t=r.length;e<t;e++){const t=r[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(s??=[],s.push(t.resource.waitForAsyncAttributes()))}null===s?i():Promise.all(s).then(i,e=>{(0,pt.s)(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,(0,pt.s)(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();void 0===this._timer&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),"number"!=typeof this._timer&&this._timer.unref())}_clearTimer(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)}}class Zt extends Xt{_visibilityChangeListener;_pageHideListener;constructor(e){super(e),this.onInit(e)}onInit(e){!0!==e.disableAutoFlushOnDocumentHide&&"undefined"!=typeof document&&(this._visibilityChangeListener=()=>{"hidden"===document.visibilityState&&this.forceFlush().catch(e=>{(0,pt.s)(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{(0,pt.s)(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}class Qt extends Zt{constructor(e,t){t||(t={});const n=[["maxExportBatchSize","OTEL_BSP_MAX_EXPORT_BATCH_SIZE"],["maxQueueSize","OTEL_BSP_MAX_QUEUE_SIZE"],["scheduledDelayMillis","OTEL_BSP_SCHEDULE_DELAY"],["exportTimeoutMillis","OTEL_BSP_EXPORT_TIMEOUT"]];for(const[e,r]of n)if(void 0===t[e]){const n=(0,me.Jk)(r);void 0!==n&&(t[e]=n)}super({exporter:e,...t})}}var Yt=class e extends We.i{constructor(e={}){super(),this.options=e,this.name="@grafana/faro-web-tracing",this.version=Xe.x}initialize(){var t,n,r,i,a;const c=this.options,u={};this.config.app.name&&(u[he.UX4]=this.config.app.name),this.config.app.namespace&&(u["service.namespace"]=this.config.app.namespace),this.config.app.version&&(u[he.HZt]=this.config.app.version),this.config.app.environment&&(u["deployment.environment.name"]=this.config.app.environment,u["deployment.environment"]=this.config.app.environment);const l=this.metas.value.browser;(0,Ze.cy)(null==l?void 0:l.brands)&&(u["browser.brands"]=l.brands.map(e=>e.brand)),(null==l?void 0:l.language)&&(u["browser.language"]=l.language),"boolean"==typeof(null==l?void 0:l.mobile)&&(u["browser.mobile"]=Boolean(l.mobile)),(null==l?void 0:l.os)&&(u["browser.platform"]=l.os),(null==l?void 0:l.userAgent)&&(u[he.MzX]=l.userAgent),u["process.runtime.name"]="browser",u["process.runtime.version"]=null===(t=this.metas.value.browser)||void 0===t?void 0:t.userAgent,u["telemetry.distro.name"]="faro-web-sdk",u["telemetry.distro.version"]=Xe.x,Object.assign(u,c.resourceAttributes);const d=it().merge(rt(u)),f=new Kt({resource:d,sampler:{shouldSample:()=>({decision:Je(this.api.getSession())})},spanProcessors:[null!==(n=c.spanProcessor)&&void 0!==n?n:new s(new Qt(new p({api:this.api}),{scheduledDelayMillis:e.SCHEDULED_BATCH_DELAY_MS,maxExportBatchSize:30}),this.metas)]}),h=!0===c.omitTraceContextForUnsampledSessions;f.register({propagator:new o(null!==(r=c.propagator)&&void 0!==r?r:new Ge.lm,()=>this.transports.isPaused()||h&&!Ke(this.api.getSession())),contextManager:c.contextManager});const{propagateTraceHeaderCorsUrls:m,fetchInstrumentationOptions:g,xhrInstrumentationOptions:y}=null!==(i=this.options.instrumentationOptions)&&void 0!==i?i:{};!function(e){const t=e.tracerProvider||b.u.getTracerProvider(),n=e.meterProvider||M.getMeterProvider(),r=e.loggerProvider||V.getLoggerProvider();!function(e,t,n,r){for(let i=0,s=e.length;i<s;i++){const s=e[i];t&&s.setTracerProvider(t),n&&s.setMeterProvider(n),r&&s.setLoggerProvider&&s.setLoggerProvider(r),s.getConfig().enabled||s.enable()}}(e.instrumentations?.flat()??[],t,n,r)}({instrumentations:null!==(a=c.instrumentations)&&void 0!==a?a:ze({ignoreUrls:this.getIgnoreUrls(),propagateTraceHeaderCorsUrls:m,fetchInstrumentationOptions:g,xhrInstrumentationOptions:y})}),this.api.initOTEL(b.u,v._)}getIgnoreUrls(){return this.transports.transports.flatMap(e=>e.getIgnoreUrls())}};Yt.SCHEDULED_BATCH_DELAY_MS=1e3}
2,1433:(e,t,n)=>{"use strict";n.d(t,{s:()=>s,u:()=>i});let r=(0,n(79453).o)();function i(e){r=e}function s(e){try{r(e)}catch{}}},1625:(e,t,n)=>{"use strict";n.d(t,{T2:()=>a,XW:()=>s,xg:()=>o});var r,i=n(77297);function s(e){return new a(t=>{t(e)})}function o(e){return new a((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(r||(r={}));class a{constructor(e){this._state=r.PENDING,this._handlers=[],this._runExecutor(e)}then(e,t){return new a((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new a((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{i?n(r):t(r)})})}_executeHandlers(){if(this._state===r.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)})}_runExecutor(e){const t=(e,t)=>{this._state===r.PENDING&&((0,i.Qg)(t)?t.then(n,s):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(r.RESOLVED,e)},s=e=>{t(r.REJECTED,e)};try{e(n,s)}catch(e){s(e)}}}},2170:(e,t,n)=>{"use strict";n.d(t,{E1:()=>p,Ef:()=>s,JD:()=>a,Lc:()=>h,Le:()=>d,Sn:()=>u,fs:()=>c,i_:()=>r,jG:()=>f,sy:()=>i,uT:()=>o,xc:()=>l});const r="sentry.source",i="sentry.sample_rate",s="sentry.previous_trace_sample_rate",o="sentry.op",a="sentry.origin",c="sentry.idle_span_finish_reason",u="sentry.measurement_unit",l="sentry.measurement_value",d="sentry.custom_span_name",p="sentry.profile_id",f="sentry.exclusive_time",h="sentry.link.type"},2184:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var r=n(89170),i=n(91068);let s=null;function o(e){const t="unhandledrejection";(0,i.s5)(t,e),(0,i.AS)(t,a)}function a(){s=r.O.onunhandledrejection,r.O.onunhandledrejection=function(e){const t=e;return(0,i.aj)("unhandledrejection",t),!s||s.apply(this,arguments)},r.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},2258:(e,t)=>{"use strict";var n,r;t.i1=void 0,function(e){e[e.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",e[e.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",e[e.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",e[e.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",e[e.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",e[e.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"}(n||(t.i1=n={})),function(e){e[e.STATUS_CODE_UNSET=0]="STATUS_CODE_UNSET",e[e.STATUS_CODE_OK=1]="STATUS_CODE_OK",e[e.STATUS_CODE_ERROR=2]="STATUS_CODE_ERROR"}(r||(r={}))},2339:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});const r=n(32535).K.instance()},2753:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AnchoredClock:()=>i,BindOnceFuture:()=>C.I,CompositePropagator:()=>g.n,ExportResultCode:()=>l.V,RPCType:()=>y,SDK_INFO:()=>h.q,TRACE_PARENT_HEADER:()=>v.ZS,TRACE_STATE_HEADER:()=>v.UD,TimeoutError:()=>x,TraceState:()=>E.n,W3CBaggagePropagator:()=>r.t,W3CTraceContextPropagator:()=>v.lm,_globalThis:()=>p,addHrTimes:()=>c.mw,callWithTimeout:()=>k,deleteRPCMetadata:()=>S,diagLogLevelFromString:()=>L,getBooleanFromEnv:()=>m.Ix,getNumberFromEnv:()=>m.Jk,getRPCMetadata:()=>w,getStringFromEnv:()=>m.HF,getStringListFromEnv:()=>m.f7,getTimeOrigin:()=>c.uc,globalErrorHandler:()=>o.s,hrTime:()=>c._5,hrTimeDuration:()=>c.W5,hrTimeToMicroseconds:()=>c.w_,hrTimeToMilliseconds:()=>c.JU,hrTimeToNanoseconds:()=>c.u5,hrTimeToSeconds:()=>c.YP,hrTimeToTimeStamp:()=>c.tq,internal:()=>D,isAttributeValue:()=>s.m,isTimeInput:()=>c.Ir,isTimeInputHrTime:()=>c.VL,isTracingSuppressed:()=>T.Zf,isUrlIgnored:()=>O.K,loggingErrorHandler:()=>a.o,merge:()=>A.h,millisToHrTime:()=>c.lg,otperformance:()=>f.ug,parseKeyPairsIntoRecord:()=>d.hD,parseTraceParent:()=>v.ZI,sanitizeAttributes:()=>s.L,setGlobalErrorHandler:()=>o.u,setRPCMetadata:()=>_,suppressTracing:()=>T.M1,timeInputToHrTime:()=>c.KJ,unrefTimer:()=>u,unsuppressTracing:()=>T.FU,urlMatches:()=>O.f});var r=n(48698);class i{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,t){this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}now(){const e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}}var s=n(95497),o=n(1433),a=n(79453),c=n(41437);function u(e){"number"!=typeof e&&e.unref()}var l=n(36275),d=n(44874);const p=globalThis;var f=n(11419),h=n(31720),m=n(23202),g=n(22532),v=n(9142);const b=(0,n(98902).n)("OpenTelemetry SDK Context Key RPC_METADATA");var y;function _(e,t){return e.setValue(b,t)}function S(e){return e.deleteValue(b)}function w(e){return e.getValue(b)}!function(e){e.HTTP="http"}(y||(y={}));var T=n(65890),E=n(47363),A=n(8045);
2class x extends Error{constructor(e){super(e),Object.setPrototypeOf(this,x.prototype)}}function k(e,t){let n;const r=new Promise(function(e,r){n=setTimeout(function(){r(new x("Operation timed out."))},t)});return Promise.race([e,r]).then(e=>(clearTimeout(n),e),e=>{throw clearTimeout(n),e})}var O=n(4905),C=n(26514),I=n(79232),P=n(2339);const R={ALL:I.u.ALL,VERBOSE:I.u.VERBOSE,DEBUG:I.u.DEBUG,INFO:I.u.INFO,WARN:I.u.WARN,ERROR:I.u.ERROR,NONE:I.u.NONE};function L(e){if(null==e)return;return R[e.toUpperCase()]??(P.s.warn(`Unknown log level "${e}", expected one of ${Object.keys(R)}, using default`),I.u.INFO)}var N=n(33835);const D={_export:function(e,t){return new Promise(n=>{N._.with((0,T.M1)(N._.active()),()=>{e.export(t,n)})})}}},3250:(e,t,n)=>{"use strict";n.d(t,{EC:()=>s,KV:()=>c,QC:()=>a,hN:()=>i,kI:()=>u,r_:()=>o,un:()=>r});const r="=",i=";",s=",",o="baggage",a=180,c=4096,u=8192},3319:(e,t,n)=>{"use strict";n.d(t,{F2:()=>d,Nd:()=>u,O1:()=>a,RZ:()=>o,YS:()=>p,iK:()=>c,kk:()=>l});var r=n(53690),i=n(18220),s=n(75736);function o(e){return`data-${(e.startsWith("data-")?e.slice(5):e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`}function a(e){const t=o(e);return t.endsWith("-name")?`${t.slice(0,-5)}-timeout`:`${t}-timeout`}function c(e,t=100,n=s.l){if(void 0===e)return t;let r=NaN;try{r="string"==typeof e&&""===e.trim()?NaN:Number(e)}catch(e){}return!Number.isFinite(r)||r<=0?(n(`initialActivityTimeout must be a finite number greater than zero; using ${t} ms`),t):r>1e3?(n(`initialActivityTimeout cannot exceed ${i.Bm} ms; clamping to the maximum`),i.Bm):r}function u(e){return o(e).slice(5).replace(/-(.)/g,(e,t)=>t.toUpperCase())}function l(e,t,n){return void 0!==e&&window.clearTimeout(e),window.setTimeout(()=>{t()},n)}function d(e){return e.type===r.HU}function p(e){return e.type===r.IU}},3576:(e,t,n)=>{"use strict";n.d(t,{P:()=>s,A:()=>o});var r=n(10629),i=n(82393);let s={api:{pushLog:()=>{},pushError:()=>{},changeStacktraceParser:()=>{},getStacktraceParser:()=>{},pushMeasurement:()=>{},pushTraces:()=>{},getOTEL:()=>{},getTraceContext:()=>{},initOTEL:()=>{},isOTELInitialized:()=>!1,setUser:()=>{},resetUser:()=>{},setSession:()=>{},resetSession:()=>{},getSession:()=>{},setView:()=>{},getView:()=>{},setPage:()=>{},getPage:()=>{},pushEvent:()=>{},startUserAction:()=>{},getActiveUserAction:()=>{}}};function o(e,t,n,o,a,c,u){return t.debug("Initializing Faro"),s={api:c,config:n,instrumentations:u,internalLogger:t,metas:o,pause:a.pause,transports:a,unpatchedConsole:e,unpause:a.unpause},(0,i.N2)(s),function(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 r.J)return void 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"`);Object.defineProperty(r.J,e.config.globalObjectKey,{configurable:!1,writable:!1,value:e})}}(s),s}},4905:(e,t,n)=>{"use strict";function r(e,t){return"string"==typeof t?e===t:!!e.match(t)}function i(e,t){if(!t)return!1;for(const n of t)if(r(e,n))return!0;return!1}n.d(t,{K:()=>i,f:()=>r})},5062:(e,t,n)=>{"use strict";function r(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}n.d(t,{i:()=>r})},5150:(e,t,n)=>{"use strict";t.sJ=void 0;const r=n(27066);function i(e,t){let n=255&e|256;return t&&(n|=512),n}function s(e,t){const n=e.spanContext(),s=e.status,o=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:o,traceState:n.traceState?.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:(0,r.toAttributes)(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>function(e,t){return{attributes:e.attributes?(0,r.toAttributes)(e.attributes,t):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:s.code,message:s.message},links:e.links.map(e=>function(e,t){return{attributes:e.attributes?(0,r.toAttributes)(e.attributes,t):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0,flags:i(e.context.traceFlags,e.context.
2isRemote)}}(e,t)),droppedLinksCount:e.droppedLinksCount,flags:i(n.traceFlags,e.parentSpanContext?.isRemote)}}function o(e,t){const n=function(e){const t=new Map;for(const n of e){let e=t.get(n.resource);e||(e=new Map,t.set(n.resource,e));const r=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let i=e.get(r);i||(i=[],e.set(r,i)),i.push(n)}return t}(e),i=[],o=n.entries();let a=o.next();for(;!a.done;){const[e,n]=a.value,c=[],u=n.values();let l=u.next();for(;!l.done;){const e=l.value;if(e.length>0){const n=e.map(e=>s(e,t));c.push({scope:(0,r.createInstrumentationScope)(e[0].instrumentationScope,t),spans:n,schemaUrl:e[0].instrumentationScope.schemaUrl})}l=u.next()}const d=(0,r.createResource)(e,t),p={resource:d,scopeSpans:c,schemaUrl:d.schemaUrl};i.push(p),a=o.next()}return i}t.sJ=function(e,t){return{resourceSpans:o(e,t)}}},6461:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(67177);class i{constructor(e=r.dM){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}},7353:(e,t,n)=>{"use strict";n.d(t,{u:()=>E});var r=n(71895),i=n(25465),s=n(98902),o=n(6461);const a=(0,s.n)("OpenTelemetry Context Key SPAN");function c(e){return e.getValue(a)||void 0}function u(){return c(i._.getInstance().active())}function l(e,t){return e.setValue(a,t)}function d(e){return e.deleteValue(a)}function p(e,t){return l(e,new o.d(t))}function f(e){var t;return null===(t=c(e))||void 0===t?void 0:t.spanContext()}var h=n(71664);const m=i._.getInstance();class g{startSpan(e,t,n=m.active()){if(Boolean(null==t?void 0:t.root))return new o.d;const r=n&&f(n);return null!==(i=r)&&"object"==typeof i&&"spanId"in i&&"string"==typeof i.spanId&&"traceId"in i&&"string"==typeof i.traceId&&"traceFlags"in i&&"number"==typeof i.traceFlags&&(0,h.YA)(r)?new o.d(r):new o.d;var i}startActiveSpan(e,t,n,r){let i,s,o;if(arguments.length<2)return;2===arguments.length?o=t:3===arguments.length?(i=t,o=n):(i=t,s=n,o=r);const a=null!=s?s:m.active(),c=this.startSpan(e,i,a),u=l(a,c);return m.with(u,o,void 0,c)}}const v=new g;class b{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}startSpan(e,t,n){return this._getTracer().startSpan(e,t,n)}startActiveSpan(e,t,n,r){const i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;const e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):v}}const y=new class{getTracer(e,t,n){return new g}};class _{getTracer(e,t,n){var r;return null!==(r=this.getDelegateTracer(e,t,n))&&void 0!==r?r:new b(this,e,t,n)}getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:y}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getTracer(e,t,n)}}var S=n(32535);const w="trace";class T{constructor(){this._proxyTracerProvider=new _,this.wrapSpanContext=h.IP,this.isSpanContextValid=h.YA,this.deleteSpan=d,this.getSpan=c,this.getActiveSpan=u,this.getSpanContext=f,this.setSpan=l,this.setSpanContext=p}static getInstance(){return this._instance||(this._instance=new T),this._instance}setGlobalTracerProvider(e){const t=(0,r.$G)(w,this._proxyTracerProvider,S.K.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return(0,r.mS)(w)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,r.kv)(w,S.K.instance()),this._proxyTracerProvider=new _}}const E=T.getInstance()},8045:(e,t,n)=>{"use strict";n.d(t,{h:()=>m});const r="[object Object]",i="[object Null]",s="[object Undefined]",o=Function.prototype.toString,a=o.call(Object),c=Object.getPrototypeOf,u=Object.prototype,l=u.hasOwnProperty,d=Symbol?Symbol.toStringTag:void 0,p=u.toString;function f(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||function(e){return null==e?void 0===e?s:i:d&&d in Object(e)?function(e){const t=l.call(e,d),n=e[d];let r=!1;try{e[d]=void 0,r=!0}catch{}const i=p.call(e);return r&&(t?e[d]=n:delete e[d]),i}(e):function(e){return p.call(e)}(e)}(e)!==r)return!1;const t=c(e);if(null===t)return!0;const n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&o.call(n)===a}const h=20;function m(...e){let t=e.shift();const n=new WeakMap;for(;e.length>0;
2)t=v(t,e.shift(),0,n);return t}function g(e){return y(e)?e.slice():e}function v(e,t,n=0,r){let i;if(!(n>h)){if(n++,w(e)||w(t)||_(t))i=g(t);else if(y(e)){if(i=e.slice(),y(t))for(let e=0,n=t.length;e<n;e++)i.push(g(t[e]));else if(S(t)){const e=Object.keys(t);for(let n=0,r=e.length;n<r;n++){const r=e[n];"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(i[r]=g(t[r]))}}}else if(S(e))if(S(t)){if(!function(e,t){return!(!f(e)||!f(t))}(e,t))return t;i=Object.assign({},e);const s=Object.keys(t);for(let o=0,a=s.length;o<a;o++){const a=s[o];if("__proto__"===a||"constructor"===a||"prototype"===a)continue;const c=t[a];if(w(c))void 0===c?delete i[a]:i[a]=c;else{const s=i[a],o=c;if(b(e,a,r)||b(t,a,r))delete i[a];else{if(S(s)&&S(o)){const n=r.get(s)||[],i=r.get(o)||[];n.push({obj:e,key:a}),i.push({obj:t,key:a}),r.set(s,n),r.set(o,i)}i[a]=v(i[a],c,n,r)}}}}else i=t;return i}}function b(e,t,n){const r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){const i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function y(e){return Array.isArray(e)}function _(e){return"function"==typeof e}function S(e){return!w(e)&&!y(e)&&!_(e)&&"object"==typeof e}function w(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}},9142:(e,t,n)=>{"use strict";n.d(t,{UD:()=>u,ZI:()=>d,ZS:()=>c,lm:()=>p});var r=n(7353),i=n(71664),s=n(14138),o=n(65890),a=n(47363);const c="traceparent",u="tracestate",l=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function d(e){const t=l.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}class p{inject(e,t,n){const a=r.u.getSpanContext(e);if(!a||(0,o.Zf)(e)||!(0,i.YA)(a))return;const l=`00-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||s.X.NONE).toString(16)}`;n.set(t,c,l),a.traceState&&n.set(t,u,a.traceState.serialize())}extract(e,t,n){const i=n.get(t,c);if(!i)return e;const s=Array.isArray(i)?i[0]:i;if("string"!=typeof s)return e;const o=d(s);if(!o)return e;o.isRemote=!0;const l=n.get(t,u);if(l){const e=Array.isArray(l)?l.join(","):l;o.traceState=new a.n("string"==typeof e?e:void 0)}return r.u.setSpanContext(e,o)}fields(){return[c,u]}}},10629:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});const r="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:"undefined"!=typeof self?self:void 0},10785:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(72013),i=class extends r.H{constructor(...e){super(...e),this.api={},this.transports={}}}},11312:(e,t,n)=>{"use strict";n.d(t,{R:()=>d});var r=n(61854),i=n(42547),s=n(41708),o=n(26916),a=n(39745),c=n(67542),u=n(3576),l=class e{constructor(){this.isAdopting=()=>!1,this.updateSession=(0,s.n)(()=>this.updateUserSession(),o.MM),this.updateUserSession=(0,a.vP)({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession}),this.init()}static removeUserSession(){(0,i.Ai)(o.AQ,e.storageTypeSession)}static storeUserSession(t){(0,i.SO)(o.AQ,(0,c.xD)(t),e.storageTypeSession)}static fetchUserSession(){const t=(0,i.Gq)(o.AQ,e.storageTypeSession);return t?JSON.parse(t):null}init(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.updateSession()}),u.P.metas.addListener((0,a.h$)({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession}))}};function d(e){return(null==e?void 0:e.persistent)?r.G:l}l.storageTypeSession=i.Uy.session},11419:(e,t,n)=>{"use strict";n.d(t,{ug:()=>r});const r=performance},13241:(e,t,n)=>{"use strict";n.d(t,{A2j:()=>d,E$0:()=>h,HZt:()=>f,Jqu:()=>g,MbS:()=>s,MzX:()=>y,ORx:()=>u,Tu$:()=>l,UX4:()=>p,WQZ:()=>b,aJA:()=>v,d62:()=>o,n4R:()=>a,nWg:()=>c,oJb:()=>r,qVR:()=>m,wLW:()=>i});const r="error.type",i="exception.message",s="exception.stacktrace",o="exception.type",a="http.request.method",c="http.request.method_original",u="http.response.status_code",l="server.address",d="server.port",p="service.name",f="service.version",h="telemetry.sdk.language",m="webjs",g="telemetry.sdk.name",v="telemetry.sdk.version",b="url.full",y="user_agent.original"},14041:(e,t,n)=>{"use strict";e.exports=n(14304)}
2,14138:(e,t,n)=>{"use strict";var r;n.d(t,{X:()=>r}),function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(r||(r={}))},14304:(e,t)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.iterator;var n={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r=Object.assign,i={};function s(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}function o(){}function a(e,t,r){this.props=e,this.context=t,this.refs=i,this.updater=r||n}s.prototype.isReactComponent={},s.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},s.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=s.prototype;var c=a.prototype=new o;c.constructor=a,r(c,s.prototype),c.isPureReactComponent=!0;Array.isArray,Object.prototype.hasOwnProperty;t.version="18.3.1"},16528:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});var r=n(3576);function i(){var e,t,n;const i=r.P.config.sessionTracking,s=null!==(e=null!==(t=null==i||null===(n=i.sampler)||void 0===n?void 0:n.call(i,{metas:r.P.metas.value}))&&void 0!==t?t:null==i?void 0:i.samplingRate)&&void 0!==e?e:1,o="number"==typeof s?function(e){return Math.min(1,Math.max(0,e))}(s):0;return Math.random()<o}},17280:(e,t,n)=>{"use strict";function r(e,t,n,r,i,s,o){try{var a=e[s](o),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,s){var o=e.apply(t,n);function a(e){r(o,i,s,a,c,"next",e)}function c(e){r(o,i,s,a,c,"throw",e)}a(void 0)})}}n.d(t,{A:()=>i})},18018:(e,t,n)=>{"use strict";n.d(t,{dp:()=>At});var r=n(67099),i=n(7365),s=n(2170),o=n(59511),a=n(40417),c=n(25626),u=n(76772),l=n(76208),d=n(62659),p=n(74904);class f{constructor(e={}){this._traceId=e.traceId||(0,p.e)(),this._spanId=e.spanId||(0,p.Z)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:u.CC}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}var h=n(64482),m=n(4899),g=n(43223),v=n(5062),b=n(32647);function y(e){if(!e||0===e.length)return;const t={};return e.forEach(e=>{const n=e.attributes||{},r=n[s.Sn],i=n[s.xc];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}var _=n(78219);class S{constructor(e={}){this._traceId=e.traceId||(0,p.e)(),this._spanId=e.spanId||(0,p.Z)(),this._startTime=e.startTimestamp||(0,l.zf)(),this._links=e.links,this._attributes={},this.setAttributes({[s.JD]:"manual",[s.uT]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?u.aO:u.CC}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,u.cI)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(s.i_,"custom"),this}end(e){this._endTime||(this._endTime=(0,u.cI)(e),function(e){if(!i.T)return;const{description:t="< unknown name >",op:n="< unknown op >"}=(0,u.et)(e),{spanId:r}=e.spanContext(),s=`[Tracing] Finishing "${n}" ${(0,u.zU)(e)===e?"root ":""}span "${t}" with ID ${r}`;a.vF.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[s.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,u.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[s.JD],profile_id:this._attributes[s.E1],exclusive_time:this._attributes[s.jG],measurements:y(this._events),is_segment:this._isStandaloneSpan&&(0,u.zU)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,u.zU)(this).spanContext().spanId:void 0,links:(0,u.uU)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){i.T&&a.vF.log("[Tracing] Adding an event to span:",e);const r=w(t)?t:n||(0,l.zf)(),s=w(t)?{}:t||{},o={name:e,time:(0,u.cI)(r),attributes:s};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=(0,r.KU)();if(e&&e.emit("spanEnd",this),!this._isStandaloneSpan&&this!==(0,u.zU)(this))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=(0,r.KU)();if(!t)return;const n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}((0,b.lu)([this],e)):(i.T&&a.vF.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();t&&((0,_.L)(this).scope||(0,r.o5)()).captureEvent(t)}_convertSpanToTransaction(){if(!T((0,u.et)(this)))return;this._name||(i.T&&a.vF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=(0,_.L)(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const r=(0,u.xO)(this).filter(e=>e!==this&&!function(e){return e instanceof S&&e.isStandaloneSpan()}(e)).map(e=>(0,u.et)(e)).filter(T),o=this._attributes[s.i_];
2delete this._attributes[s.Le],r.forEach(e=>{delete e.data[s.Le]});const c={contexts:{trace:(0,u.Ck)(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,d.k1)(this)},request:n,...o&&{transaction_info:{source:o}}},l=y(this._events);return l&&Object.keys(l).length&&(i.T&&a.vF.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),c.measurements=l),c}}function w(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function T(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}const E="__SENTRY_SUPPRESS_TRACING__";function A(e){const t=k();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=function(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=(0,u.cI)(e.startTime),delete n.startTime,n}return t}(e),{forceTransaction:s,parentSpan:l}=e;return(e.scope?t=>(0,r.v4)(e.scope,t):void 0!==l?e=>x(l,e):e=>e())(()=>{const t=(0,r.o5)(),l=function(e){const t=(0,c.f)(e);if(!t)return;const n=(0,r.KU)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,u.zU)(t):t}(t);return e.onlyIfParent&&!l?new f:function({parentSpan:e,spanArguments:t,forceTransaction:n,scope:s}){if(!(0,o.f)()){const r=new f;if(n||!e){const e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,d.k1)(r)};(0,d.LZ)(r,e)}return r}const c=(0,r.rm)();let l;if(e&&!n)l=function(e,t,n){const{spanId:i,traceId:s}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[E]&&(0,u.pK)(e),a=o?new S({...n,parentSpanId:i,traceId:s,sampled:o}):new f({traceId:s});(0,u.Hu)(e,a);const c=(0,r.KU)();return c&&(c.emit("spanStart",a),n.endTimestamp&&c.emit("spanEnd",a)),a}(e,s,t),(0,u.Hu)(e,l);else if(e){const n=(0,d.k1)(e),{traceId:r,spanId:i}=e.spanContext(),o=(0,u.pK)(e);l=O({traceId:r,parentSpanId:i,...t},s,o),(0,d.LZ)(l,n)}else{const{traceId:e,dsc:n,parentSpanId:r,sampled:i}={...c.getPropagationContext(),...s.getPropagationContext()};l=O({traceId:e,parentSpanId:r,...t},s,i),n&&(0,d.LZ)(l,n)}return function(e){if(!i.T)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,u.et)(e),{spanId:s}=e.spanContext(),o=(0,u.pK)(e),c=(0,u.zU)(e),l=c===e,d=`[Tracing] Starting ${o?"sampled":"unsampled"} ${l?"root ":""}span`,p=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&p.push(`parent ID: ${r}`),!l){const{op:e,description:t}=(0,u.et)(c);p.push(`root ID: ${c.spanContext().spanId}`),e&&p.push(`root op: ${e}`),t&&p.push(`root description: ${t}`)}a.vF.log(`${d}\n  ${p.join("\n  ")}`)}(l),(0,_.d)(l,s,c),l}({parentSpan:l,spanArguments:n,forceTransaction:s,scope:t})})}function x(e,t){const n=k();return n.withActiveSpan?n.withActiveSpan(e,t):(0,r.v4)(n=>((0,c.r)(n,e||void 0),t(n)))}function k(){const e=(0,g.EU)();return(0,m.h)(e)}function O(e,t,n){const c=(0,r.KU)(),u=c?.getOptions()||{},{name:l=""}=e,d={spanAttributes:{...e.attributes},spanName:l,parentSampled:n};c?.emit("beforeSampling",d,{decision:!1});const p=d.parentSampled??n,f=d.spanAttributes,h=t.getPropagationContext(),[m,g,b]=t.getScopeData().sdkProcessingMetadata[E]?[!1]:function(e,t,n){if(!(0,o.f)(e))return[!1];let r,s;"function"==typeof e.tracesSampler?(s=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),r=!0):void 0!==t.parentSampled?s=t.parentSampled:void 0!==e.tracesSampleRate&&(s=e.tracesSampleRate,r=!0);const c=(0,v.i)(s);if(void 0===c)return i.T&&a.vF.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(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!c)return i.T&&a.vF.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,c,r];const u=n<c;return u||i.T&&a.vF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[u,c,r]}(u,{name:l,parentSampled:p,attributes:f,parentSampleRate:(0,v.i)(h.dsc?.sample_rate)},h.sampleRand),y=new S({...e,attributes:{[s.i_]:"custom",[s.sy]:void 0!==g&&b?g:void 0,...f},sampled:m});return!m&&c&&(i.T&&a.vF.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),c.recordDroppedEvent("sample_rate","transaction")),c&&c.emit("spanStart",y),y}const C={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function I(e,t={}){const n=new Map;let p,m=!1,g="externalFinish",v=!t.disableAutoFinish;const b=[],{idleTimeout:y=C.idleTimeout,finalTimeout:_=C.finalTimeout,childSpanTimeout:S=C.childSpanTimeout,beforeSpanEnd:w}=t,T=(0,r.KU)();if(!T||!(0,o.f)()){const e=new f,t={sample_rate:"0",sampled:"false",...(0,d.k1)(e)};return(0,d.LZ)(e,t),e}const E=(0,r.o5)(),x=(0,u.Bk)(),k=function(e){const t=A(e);return(0,c.r)((0,r.o5)(),t),i.T&&a.vF.log("[Tracing] Started span is an i
2dle span"),t}(e);function O(){p&&(clearTimeout(p),p=void 0)}function I(e){O(),p=setTimeout(()=>{!m&&0===n.size&&v&&(g="idleTimeout",k.end(e))},y)}function P(e){p=setTimeout(()=>{!m&&v&&(g="heartbeatFailed",k.end(e))},S)}function R(e){m=!0,n.clear(),b.forEach(e=>e()),(0,c.r)(E,x);const t=(0,u.et)(k),{start_timestamp:r}=t;if(!r)return;t.data[s.fs]||k.setAttribute(s.fs,g),a.vF.log(`[Tracing] Idle span "${t.op}" finished`);const o=(0,u.xO)(k).filter(e=>e!==k);let l=0;o.forEach(t=>{t.isRecording()&&(t.setStatus({code:h.TJ,message:"cancelled"}),t.end(e),i.T&&a.vF.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=(0,u.et)(t),{timestamp:r=0,start_timestamp:s=0}=n,o=s<=e,c=r-s<=(_+y)/1e3;if(i.T){const e=JSON.stringify(t,void 0,2);o?c||a.vF.log("[Tracing] Discarding span since it finished after idle span final timeout",e):a.vF.log("[Tracing] Discarding span since it happened after idle span was finished",e)}c&&o||((0,u.VS)(k,t),l++)}),l>0&&k.setAttribute("sentry.idle_span_discarded_spans",l)}return k.end=new Proxy(k.end,{apply(e,t,n){if(w&&w(k),t instanceof f)return;const[r,...i]=n,s=r||(0,l.zf)(),o=(0,u.cI)(s),a=(0,u.xO)(k).filter(e=>e!==k);if(!a.length)return R(o),Reflect.apply(e,t,[o,...i]);const c=a.map(e=>(0,u.et)(e).timestamp).filter(e=>!!e),d=c.length?Math.max(...c):void 0,p=(0,u.et)(k).start_timestamp,h=Math.min(p?p+_/1e3:1/0,Math.max(p||-1/0,Math.min(o,d||1/0)));return R(h),Reflect.apply(e,t,[h,...i])}}),b.push(T.on("spanStart",e=>{var t;m||e===k||(0,u.et)(e).timestamp||(0,u.xO)(k).includes(e)&&(t=e.spanContext().spanId,O(),n.set(t,!0),P((0,l.zf)()+S/1e3))})),b.push(T.on("spanEnd",e=>{var t;m||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&I((0,l.zf)()+y/1e3))})),b.push(T.on("idleSpanEnableAutoFinish",e=>{e===k&&(v=!0,I(),n.size&&P())})),t.disableAutoFinish||I(),setTimeout(()=>{m||(k.setStatus({code:h.TJ,message:"deadline_exceeded"}),g="finalTimeout",k.end())},_),k}var P=n(84110),R=n(2184);let L=!1;function N(){const e=(0,u.Bk)(),t=e&&(0,u.zU)(e);if(t){const e="internal_error";i.T&&a.vF.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:h.TJ,message:e})}}N.tag="sentry_tracingErrorCallback";var D=n(89170),M=n(42823),U=n(44977),j=n(50120),$=n(21722),F=n(27976),q=n(77297),B=n(80845),z=n(69734),H=n(34564);const V=(e,t,n,r)=>{let i,s;return o=>{t.value>=0&&(o||r)&&(s=t.value-(i??0),(s||void 0===i)&&(i=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},K=(e=!0)=>{const t=B.j.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},J=()=>{const e=K();return e?.activationStart??0},G=(e,t=-1)=>{const n=K();let r="navigate";return n&&(B.j.document?.prerendering||J()>0?r="prerender":B.j.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},W=new WeakMap;function X(e,t){return W.get(e)||W.set(e,new t),W.get(e)}class Z{constructor(){Z.prototype.__init.call(this),Z.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}const Q=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Y=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let ee=-1;const te=e=>{"hidden"===B.j.document.visibilityState&&ee>-1&&(ee="visibilitychange"===e.type?e.timeStamp:0,ne())},ne=()=>{removeEventListener("visibilitychange",te,!0),removeEventListener("prerenderingchange",te,!0)},re=()=>{if(B.j.document&&ee<0){const e=J(),t=B.j.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime;ee=t??("hidden"!==B.j.document?.visibilityState||B.j.document?.prerendering?1/0:0),addEventListener("visibilitychange",te,!0),addEventListener("prerenderingchange",te,!0)}return{get firstHiddenTime(){return ee}}},ie=e=>{B.j.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},se=[1800,3e3],oe=[.1,.25],ae=e=>{const t=t=>
2{"pagehide"!==t.type&&"hidden"!==B.j.document?.visibilityState||e(t)};B.j.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ce=[100,300];let ue=0,le=1/0,de=0;const pe=e=>{e.forEach(e=>{e.interactionId&&(le=Math.min(le,e.interactionId),de=Math.max(de,e.interactionId),ue=de?(de-le)/7+1:0)})};let fe;const he=()=>fe?ue:performance.interactionCount||0,me=()=>{"interactionCount"in performance||fe||(fe=Q("event",pe,{type:"event",buffered:!0,durationThreshold:0}))};let ge=0;class ve{constructor(){ve.prototype.__init.call(this),ve.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){ge=he(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor((he()-ge)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this._longestInteractionList.at(-1);let n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.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):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10){const e=this._longestInteractionList.splice(10);for(const t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}}const be=e=>{const t=B.j.requestIdleCallback||B.j.setTimeout;"hidden"===B.j.document?.visibilityState?e():(t(e=Y(e)),ae(e))},ye=[200,500];class _e{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}const Se=[2500,4e3],we=[800,1800],Te=e=>{B.j.document?.prerendering?ie(()=>Te(e)):"complete"!==B.j.document?.readyState?addEventListener("load",()=>Te(e),!0):setTimeout(e)},Ee={},Ae={};let xe,ke,Oe,Ce,Ie;function Pe(e,t=!1){return $e("cls",e,Ne,xe,t)}function Re(e,t){return Fe(e,t),Ae[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),Q(e,t=>{Le(e,{entries:t})},t)}(e),Ae[e]=!0),qe(e,t)}function Le(e,t){const n=Ee[e];if(n?.length)for(const r of n)try{r(t)}catch(t){z.T&&a.vF.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,H.qQ)(r)}\nError:`,t)}}function Ne(){return((e,t={})=>{((e,t={})=>{ie(()=>{const n=re(),r=G("FCP");let i;const s=Q("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-J(),0),r.entries.push(t),i(!0)))});s&&(i=V(e,r,se,t.reportAllChanges))})})(Y(()=>{const n=G("CLS",0);let r;const i=X(t,Z),s=e=>{for(const t of e)i._processEntry(t);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},o=Q("layout-shift",s);o&&(r=V(e,n,oe,t.reportAllChanges),B.j.document?.addEventListener("visibilitychange",()=>{"hidden"===B.j.document?.visibilityState&&(s(o.takeRecords()),r(!0))}),B.j?.setTimeout?.(r))}))})(e=>{Le("cls",{metric:e}),xe=e},{reportAllChanges:!0})}function De(){return((e,t={})=>{ie(()=>{const n=re(),r=G("FID");let i;const s=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),i(!0))},o=e=>{e.forEach(s)},a=Q("first-input",o);i=V(e,r,ce,t.reportAllChanges),a&&ae(Y(()=>{o(a.takeRecords()),a.disconnect()}))})})(e=>{Le("fid",{metric:e}),ke=e})}function Me(){return((e,t={})=>{ie(()=>{const n=re(),r=G("LCP");let i;const s=X(t,_e),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)s._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-J(),0),r.entries=[t],i())},a=Q("largest-contentful-paint",o);if(a){i=V(e,r,Se,t.reportAllChanges);const n=Y(()=>{o(a.takeRecords()),a.disconnect(),i(!0)});for(const e of["keydown","click","visibilitychange"])B.j.document&&addEventListener(e,()=>be(n),{capture:!0,once:!0})}})})(e=>{Le("lcp",{metric:e}),Oe=e},{reportAllChanges:!0})}function Ue(){return((e,t={})=>{const n=G("TTFB"),r=V(e,n,we,t.reportAllChanges);Te(()=>{const e=K();e&&(n.value=Math.max(e.responseStart-J(),0),n.entries=[e],r(!0))})})(e=>{Le("ttfb",{metric:e}),Ce=e})}function je(){return((e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&ie(()=>{me();const n=G("INP");let r;const i=X(t,ve),s=e=>{be(()=>{for(const t of e)i._processEntry(t);const t=i._estimateP98LongestInteraction();t&&t._latency!==n.value&&(n.value=t._latency,n.entries=t.entries,r())})},o=Q("event",s,{durationThreshold:t.durationThreshold??40});r=V(e,n,ye,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),ae(()=>{s(o.takeRecords()),r(!0)}))})})(e=>{Le("inp",{metric:e}),Ie=e})}function $e(e,t,n,r,i=!1){let s;return Fe(e,t),Ae[e]||(s=n(),Ae[e]=!0),r&&t({metric:r}),qe(e,t,i?s:void 0)}function Fe(e,t){Ee[e]=Ee[e]||[],Ee[e].push(t)}function qe(e,t,n){return()=>{n&&n();const r=Ee[e];
2if(!r)return;const i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function Be(e){return"number"==typeof e&&isFinite(e)}function ze(e,t,n,{...r}){const i=(0,u.et)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),x(e,()=>{const e=A({startTime:t,...r});return e&&e.end(n),e})}function He(e){const t=(0,r.KU)();if(!t)return;const{name:n,transaction:i,attributes:s,startTime:o}=e,{release:a,environment:c,sendDefaultPii:u}=t.getOptions(),l=t.getIntegrationByName("Replay"),d=l?.getReplayId(),p=(0,r.o5)(),f=p.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;let m;try{m=p.getScopeData().contexts.profile.profile_id}catch{}return A({name:n,attributes:{release:a,environment:c,user:h||void 0,profile_id:m||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":B.j.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...s},startTime:o,experimental:{standalone:!0}})}function Ve(){return B.j.addEventListener&&B.j.performance}function Ke(e){return e/1e3}function Je(e){let t="unknown",n="unknown",r="";for(const i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}let Ge,We,Xe=0,Ze={};function Qe({recordClsStandaloneSpans:e}){const t=Ve();if(t&&(0,l.k3)()){t.mark&&B.j.performance.mark("sentry-tracing-init");const n=$e("fid",({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Ke((0,l.k3)()),r=Ke(t.startTime);Ze.fid={value:e.value,unit:"millisecond"},Ze["mark.fid"]={value:n+r,unit:"second"}},De,ke),i=function(e,t=!1){return $e("lcp",e,Me,Oe,t)}(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ze.lcp={value:e.value,unit:"millisecond"},Ge=t)},!0),o=$e("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(Ze.ttfb={value:e.value,unit:"millisecond"})},Ue,Ce),c=e?function(){let e,t,n=0;if(!function(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}())return;let i=!1;function o(){i||(i=!0,t&&function(e,t,n){z.T&&a.vF.log(`Sending CLS span (${e})`);const i=Ke(((0,l.k3)()||0)+(t?.startTime||0)),o=(0,r.o5)().getScopeData().transactionName,c=He({name:t?(0,U.Hd)(t.sources[0]?.node):"Layout shift",transaction:o,attributes:{[s.JD]:"auto.http.browser.cls",[s.uT]:"ui.webvital.cls",[s.jG]:t?.duration||0,"sentry.pageload.span_id":n},startTime:i});c&&(c.addEvent("cls",{[s.Sn]:"",[s.xc]:e}),c.end(i))}(n,e,t),c())}const c=Pe(({metric:t})=>{const r=t.entries[t.entries.length-1];r&&(n=t.value,e=r)},!0);ae(()=>{o()}),setTimeout(()=>{const e=(0,r.KU)();if(!e)return;const n=e.on("startNavigationSpan",()=>{o(),n?.()}),i=(0,u.Bk)();if(i){const e=(0,u.zU)(i);"pageload"===(0,u.et)(e).op&&(t=e.spanContext().spanId)}},0)}():Pe(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ze.cls={value:e.value,unit:""},We=t)},!0);return()=>{n(),i(),o(),c?.()}}return()=>{}}function Ye(e,t,n,r,i=n){const o=function(e){return"secureConnection"===e?"connectEnd":"fetch"===e?"domainLookupStart":`${e}End`}(n),a=t[o],c=t[`${n}Start`];c&&a&&ze(e,r+Ke(c),r+Ke(a),{op:`browser.${i}`,name:t.name,attributes:{[s.JD]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}function et(e,t,n,r){const i=t[n];null!=i&&i<2147483647&&(e[r]=i)}const tt=[],nt=new Map;const rt={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"},it=({metric:e})=>{if(null==e.value)return;const t=Ke(e.value);if(t>60)return;const n=e.entries.find(t=>t.duration===e.value&&rt[t.name]);if(!n)return;const{interactionId:i}=n,o=rt[n.name],a=Ke((0,l.k3)()+n.startTime),c=(0,u.Bk)(),d=c?(0,u.zU)(c):void 0,p=(null!=i?nt.get(i):void 0)||d,f=p?(0,u.et)(p).description:(0,r.o5)().getScopeData().transactionName,h=He({name:(0,U.Hd)(n.target),transaction:f,attributes:{[s.JD]:"auto.http.browser.inp",[s.uT]:`ui.interaction.${o}`,[s.jG]:n.duration},startTime:a});h&&(h.addEvent("inp",{[s.Sn]:"millisecond",[s.xc]:e.value}),h.end(a+t))};var st=n(35596),ot=n(53314),at=n(63481);const ct="sentry_previous_trace";function ut(e){return 1===e.traceFlags}var lt=n(94589),dt=n(28279),pt=n(37168);function ft(e={}){const t=e.client||(0,r.KU)();if(!(0,pt.Ol)()||!t)return{};const n=(0,g.EU)(),i=(0,m.h)(n);if(i.getTraceData)return i.getTraceData(e);const s=e.scope||(0,r.o5)(),o=e.span||(0,u.Bk)(),c=o?(0,u.Qh)(o):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,M.TC)(t,r,n)}(s),l=o?(0,d.k1)(o):(0,d.ao)(t,s),p=(0,dt.De)(l);return M.MI.test(c)?{"sentry-trace":c,baggage:p}:(a.vF.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function ht(e){return e.split(",").some(e=>e.trim().startsWith(dt.sv))}function mt(e,t,n,r){const i={url:e,type:"fetch","http.method":n,[s.JD]:r,[s.uT]:"http.client"};return t&&((0,j.nt)(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}var gt=n(85294);const vt=new WeakMap,bt=new Map,yt={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function _t(e,t){const{traceFetch:n,traceXHR:i,trackFetchStreamPerformance:a,shouldCreateSpanForRequest:c,enableHTTPTimings:l,tracePropagationTargets:d,onRequestSpanStart:p}={...yt,...t},m="function"==typeof c?c:e=>!0,g=e=>function(e,t){const n=(0,U.$N)();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch(e){return!1}const s=r.origin===i;return t?(0,F.Xr)(r.toString(),t)||s&&(0,F.Xr)(r.pathname,t):s}{const n=!!e.match(/^\/(?!\/)/);return t?(0,F.Xr)(e,t):n}}(e,d),v={};
2n&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){const t=bt.get(e.span_id);t&&(e.timestamp=t/1e3,bt.delete(e.span_id))}}),e)),a&&(0,lt.B$)(e=>{if(e.response){const t=vt.get(e.response);t&&e.endTimestamp&&bt.set(t,e.endTimestamp)}}),(0,lt.ur)(e=>{const t=function(e,t,n,i,s="auto.http.browser"){if(!e.fetchData)return;const{method:a,url:c}=e.fetchData,l=(0,o.f)()&&t(c);if(e.endTimestamp&&l){const t=e.fetchData.__span;if(!t)return;const n=i[t];return void(n&&(function(e,t){if(t.response){(0,h.N8)(e,t.response.status);const n=t.response?.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:h.TJ,message:"internal_error"});e.end()}(n,e),delete i[t]))}const d=!!(0,u.Bk)(),p=l&&d?A(function(e,t,n){const r=(0,j.kg)(e);return{name:r?`${t} ${(0,j.CH)(r)}`:t,attributes:mt(e,r,t,n)}}(c,a,s)):new f;if(e.fetchData.__span=p.spanContext().spanId,i[p.spanContext().spanId]=p,n(e.fetchData.url)){const t=e.args[0],n=e.args[1]||{},r=function(e,t,n){const r=ft({span:n}),i=r["sentry-trace"],s=r.baggage;if(!i)return;const o=t.headers||((0,q.ks)(e)?e.headers:void 0);if(o){if(function(e){return"undefined"!=typeof Headers&&(0,q.tH)(e,Headers)}(o)){const e=new Headers(o);if(e.get("sentry-trace")||e.set("sentry-trace",i),s){const t=e.get("baggage");t?ht(t)||e.set("baggage",`${t},${s}`):e.set("baggage",s)}return e}if(Array.isArray(o)){const e=[...o];o.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",i]);const t=o.find(e=>"baggage"===e[0]&&ht(e[1]));return s&&!t&&e.push(["baggage",s]),e}{const e="sentry-trace"in o?o["sentry-trace"]:void 0,t="baggage"in o?o.baggage:void 0,n=t?Array.isArray(t)?[...t]:[t]:[],r=t&&(Array.isArray(t)?t.find(e=>ht(e)):ht(t));return s&&!r&&n.push(s),{...o,"sentry-trace":e??i,baggage:n.length>0?n.join(","):void 0}}}return{...r}}(t,n,(0,o.f)()&&d?p:void 0);r&&(e.args[1]=n,n.headers=r)}const m=(0,r.KU)();if(m){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};m.emit("beforeOutgoingRequestSpan",p,t)}return p}(e,m,g,v);if(e.response&&e.fetchData.__span&&vt.set(e.response,e.fetchData.__span),t){const n=Tt(e.fetchData.url),r=n?(0,j.Dl)(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r}),l&&St(t),p?.(t,{headers:e.headers})}})),i&&(0,gt.Mn)(e=>{const t=function(e,t,n,i){const a=e.xhr,c=a?.[gt.Er];if(!a||a.__sentry_own_request__||!c)return;const{url:l,method:d}=c,p=(0,o.f)()&&t(l);if(e.endTimestamp&&p){const e=a.__sentry_xhr_span_id__;if(!e)return;const t=i[e];return void(t&&void 0!==c.status_code&&((0,h.N8)(t,c.status_code),t.end(),delete i[e]))}const m=Tt(l),g=m?(0,j.Dl)(m):(0,j.Dl)(l),v=(0,j.f)(l),b=!!(0,u.Bk)(),y=p&&b?A({name:`${d} ${v}`,attributes:{url:l,type:"xhr","http.method":d,"http.url":m,"server.address":g?.host,[s.JD]:"auto.http.browser",[s.uT]:"http.client",...g?.search&&{"http.query":g?.search},...g?.hash&&{"http.fragment":g?.hash}}}):new f;a.__sentry_xhr_span_id__=y.spanContext().spanId,i[a.__sentry_xhr_span_id__]=y,n(l)&&function(e,t){const{"sentry-trace":n,baggage:r}=ft({span:t});n&&function(e,t,n){const r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const t=r?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch(e){}}(e,n,r)}(a,(0,o.f)()&&b?y:void 0);const _=(0,r.KU)();return _&&_.emit("beforeOutgoingRequestSpan",y,e),y}(e,m,g,v);if(t){let n;l&&St(t);try{n=new Headers(e.xhr.__sentry_xhr_v3__?.request_headers)}catch{}p?.(t,{headers:n})}})}function St(e){const{url:t}=(0,u.et)(e).data;if(!t||"string"!=typeof t)return;const n=Re("resource",({entries:r})=>{r.forEach(r=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(r)&&r.name.endsWith(t)&&(function(e){const{name:t,version:n}=Je(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),(0,l.k3)()?[...r,["http.request.redirect_start",wt(e.redirectStart)],["http.request.fetch_start",wt(e.fetchStart)],["http.request.domain_lookup_start",wt(e.domainLookupStart)],["http.request.domain_lookup_end",
2wt(e.domainLookupEnd)],["http.request.connect_start",wt(e.connectStart)],["http.request.secure_connection_start",wt(e.secureConnectionStart)],["http.request.connection_end",wt(e.connectEnd)],["http.request.request_start",wt(e.requestStart)],["http.request.response_start",wt(e.responseStart)],["http.request.response_end",wt(e.responseEnd)]]:r}(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function wt(e=0){return(((0,l.k3)()||performance.timeOrigin)+e)/1e3}function Tt(e){try{return new URL(e,at.jf.location.origin).href}catch{return}}const Et={...C,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...yt},At=(e={})=>{const t={name:void 0,source:void 0},n=at.jf.document,{enableInp:o,enableLongTask:c,enableLongAnimationFrame:f,_experiments:{enableInteractions:m,enableStandaloneClsSpans:g},beforeStartSpan:v,idleTimeout:b,finalTimeout:y,childSpanTimeout:_,markBackgroundSpan:S,traceFetch:w,traceXHR:T,trackFetchStreamPerformance:E,shouldCreateSpanForRequest:A,enableHTTPTimings:x,ignoreResourceSpans:k,ignorePerformanceApiSpans:O,instrumentPageLoad:C,instrumentNavigation:$,linkPreviousTrace:z,consistentTraceSampling:H,onRequestSpanStart:V}={...Et,...e};let G;function W(e,o){const c="pageload"===o.op,p=v?v(o):o,f=p.attributes||{};o.name!==p.name&&(f[s.i_]="custom",p.attributes=f),t.name=p.name,t.source=f[s.i_];const h=I(p,{idleTimeout:b,finalTimeout:y,childSpanTimeout:_,disableAutoFinish:c,beforeSpanEnd:t=>{G?.(),function(e,t){const n=Ve(),r=(0,l.k3)();if(!n?.getEntries||!r)return;const o=Ke(r),c=n.getEntries(),{op:d,start_timestamp:p}=(0,u.et)(e);if(c.slice(Xe).forEach(n=>{const r=Ke(n.startTime),i=Ke(Math.max(0,n.duration));if(!("navigation"===d&&p&&o+r<p))switch(n.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Ye(e,t,r,n)}),Ye(e,t,"secureConnection",n,"TLS/SSL"),Ye(e,t,"fetch",n,"cache"),Ye(e,t,"domainLookup",n,"DNS"),function(e,t,n){const r=n+Ke(t.requestStart),i=n+Ke(t.responseEnd),o=n+Ke(t.responseStart);t.responseEnd&&(ze(e,r,i,{op:"browser.request",name:t.name,attributes:{[s.JD]:"auto.ui.browser.metrics"}}),ze(e,o,i,{op:"browser.response",name:t.name,attributes:{[s.JD]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,n,o);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i,o){if(["mark","measure"].includes(t.entryType)&&(0,F.Xr)(t.name,o))return;const a=K(!1),c=Ke(a?a.requestStart:0),u=i+Math.max(n,c),l=i+n,d=l+r,p={[s.JD]:"auto.resource.browser.metrics"};u!==l&&(p["sentry.browser.measure_happened_before_request"]=!0,p["sentry.browser.measure_start_time"]=u),function(e,t){try{const n=t.detail;if(!n)return;if("object"==typeof n){for(const[t,r]of Object.entries(n))if(r&&(0,q.sO)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,q.sO)(n))return void(e["sentry.browser.measure.detail"]=n);try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(p,t),u<=d&&ze(e,u,d,{name:t.name,op:t.entryType,attributes:p})}(e,n,r,i,o,t.ignorePerformanceApiSpans);const a=re(),c=n.startTime<a.firstHiddenTime;"first-paint"===n.name&&c&&(Ze.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&c&&(Ze.fcp={value:n.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,i,o,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(a?.includes(c))return;const u=(0,j.Dl)(n),l={[s.JD]:"auto.resource.browser.metrics"};et(l,t,"transferSize","http.response_transfer_size"),et(l,t,"encodedBodySize","http.response_content_length"),et(l,t,"decodedBodySize","http.decoded_response_content_length");const d=t.deliveryType;null!=d&&(l["http.response_delivery_type"]=d);const p=t.renderBlockingStatus;p&&(l["resource.render_blocking_status"]=p),u.protocol&&(l["url.scheme"]=u.protocol.split(":").pop()),u.host&&(l["server.address"]=u.host),l["url.same_origin"]=n.includes(B.j.location.origin);const{name:f,version:h}=Je(t.nextHopProtocol);l["network.protocol.name"]=f,l["network.protocol.version"]=h;const m=o+r;ze(e,m,m+i,{name:n.replace(B.j.location.origin,""),op:c,attributes:l})}(e,n,n.name,r,i,o,t.ignoreResourceSpans)}}),Xe=Math.max(c.length-1,0),function(e){const t=B.j.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Be(n.rtt)&&(Ze["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Be(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Be(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===d){!function(e){const t=K(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(Ze);const n=Ze["mark.fid"];n&&Ze.fid&&(ze(e,n.value,n.value+Ke(Ze.fid.value),{name:"first input delay",op:"ui.action",attributes:{[s.JD]:"auto.ui.browser.metrics"}}),delete Ze["mark.fid"]),"fcp"in Ze&&t.recordClsOnPageloadSpan||delete Ze.cls,Object.entries(Ze).forEach(([e,t])=>{!function(e,t,n,r=(0,u.Bk)()){const o=r&&(0,u.zU)(r);o&&(i.T&&a.vF.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[s.xc]:t,[s.Sn]:n}))}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",J()),function(e){Ge&&(Ge.element&&e.setAttribute("lcp.element",(0,U.Hd)(Ge.element)),Ge.id&&e.setAttribute("lcp.id",Ge.id),Ge.url&&e.setAttribute("lcp.url",Ge.url.trim().slice(0,200)),null!=Ge.loadTime&&e.setAttribute("lcp.loadTime",Ge.loadTime),null!=Ge.renderTime&&e.setAttribute("lcp.renderTime",Ge.renderTime),e.setAttribute("lcp.size",Ge.size)),We?.sources&&We.sources.forEac
2h((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,U.Hd)(t.node)))}(e)}Ge=void 0,We=void 0,Ze={}}(t,{recordClsOnPageloadSpan:!g,ignoreResourceSpans:k,ignorePerformanceApiSpans:O}),Ct(e,void 0);const n=(0,r.o5)(),o=n.getPropagationContext();n.setPropagationContext({...o,traceId:h.spanContext().traceId,sampled:(0,u.pK)(h),dsc:(0,d.k1)(t)})}});function m(){n&&["interactive","complete"].includes(n.readyState)&&e.emit("idleSpanEnableAutoFinish",h)}Ct(e,h),c&&n&&(n.addEventListener("readystatechange",()=>{m()}),m())}return{name:"BrowserTracing",setup(e){function t(){const t=Ot(e);t&&!(0,u.et)(t).timestamp&&(ot.T&&a.vF.log(`[Tracing] Finishing current active span with op: ${(0,u.et)(t).op}`),t.setAttribute(s.fs,"cancelled"),t.end())}L||(L=!0,(0,P.L)(N),(0,R.r)(N)),G=Qe({recordClsStandaloneSpans:g||!1}),o&&function(){if(Ve()&&(0,l.k3)()){const e=$e("inp",it,je,Ie);return()=>{e()}}}(),f&&D.O.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{const t=(0,u.Bk)();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const e=Ke((0,l.k3)()+n.startTime),{start_timestamp:r,op:i}=(0,u.et)(t);if("navigation"===i&&r&&e<r)continue;const o=Ke(n.duration),a={[s.JD]:"auto.ui.browser.metrics"},c=n.scripts[0],{invoker:d,invokerType:p,sourceURL:f,sourceFunctionName:h,sourceCharPosition:m}=c;a["browser.script.invoker"]=d,a["browser.script.invoker_type"]=p,f&&(a["code.filepath"]=f),h&&(a["code.function"]=h),-1!==m&&(a["browser.script.source_char_position"]=m),ze(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0}):c&&Re("longtask",({entries:e})=>{const t=(0,u.Bk)();if(!t)return;const{op:n,start_timestamp:r}=(0,u.et)(t);for(const i of e){const e=Ke((0,l.k3)()+i.startTime),o=Ke(i.duration);"navigation"===n&&r&&e<r||ze(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[s.JD]:"auto.ui.browser.metrics"}})}}),m&&Re("event",({entries:e})=>{const t=(0,u.Bk)();if(t)for(const n of e)if("click"===n.name){const e=Ke((0,l.k3)()+n.startTime),r=Ke(n.duration),i={name:(0,U.Hd)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[s.JD]:"auto.ui.browser.metrics"}},o=(0,U.xE)(n.target);o&&(i.attributes["ui.component_name"]=o),ze(t,e,e+r,i)}}),e.on("startNavigationSpan",n=>{if((0,r.KU)()!==e)return;t(),(0,r.rm)().setPropagationContext({traceId:(0,p.e)(),sampleRand:Math.random()});const i=(0,r.o5)();i.setPropagationContext({traceId:(0,p.e)(),sampleRand:Math.random()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),W(e,{op:"navigation",...n})}),e.on("startPageLoadSpan",(n,i={})=>{if((0,r.KU)()!==e)return;t();const s=i.sentryTrace||xt("sentry-trace"),o=i.baggage||xt("baggage"),a=(0,M.kM)(s,o),c=(0,r.o5)();c.setPropagationContext(a),c.setSDKProcessingMetadata({normalizedRequest:(0,at.AP)()}),W(e,{op:"pageload",...n})})},afterAllSetup(e){let n=(0,U.$N)();if("off"!==z&&function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const i="session-storage"===t;let o=i?function(){try{const e=at.jf.sessionStorage?.getItem(ct);return JSON.parse(e)}catch(e){return}}():void 0;e.on("spanStart",e=>{if((0,u.zU)(e)!==e)return;const t=(0,r.o5)().getPropagationContext();o=function(e,t,n){const r=(0,u.et)(t),i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[s.sy])}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return i;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(ot.T&&a.vF.info(`Adding previous_trace ${o} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:o,attributes:{[s.Lc]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${o.traceId}-${o.spanId}-${ut(o)?1:0}`)),i)}(o,e,t),i&&function(e){try{at.jf.sessionStorage.setItem(ct,JSON.stringify(e))}catch(e){ot.T&&a.vF.warn("Could not store previous trace in sessionStorage",e)}}(o)});let c=!0;n&&e.on("beforeSampling",e=>{if(!o)return;const t=(0,r.o5)(),n=t.getPropagationContext();c&&n.parentSpanId?c=!1:(t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(o.sampleRate),sampled:String(ut(o.spanContext))},sampleRand:o.sampleRand}),e.parentSampled=ut(o.spanContext),e.parentSampleRate=o.sampleRate,e.spanAttributes={...e.spanAttributes,[s.Ef]:o.sampleRate})})}(e,{linkPreviousTrace:z,consistentTraceSampling:H}),at.jf.location){if(C){const t=(0,l.k3)();!function(e,t){e.emit("startPageLoadSpan",t,void 0),(0,r.o5)().setTransactionName(t.name),Ot(e)}(e,{name:at.jf.location.pathname,startTime:t?t/1e3:void 0,attributes:{[s.i_]:"url",[s.JD]:"auto.pageload.browser"}})}$&&(0,st._)(({to:t,from:i})=>{if(void 0===i&&-1!==n?.indexOf(t))return void(n=void 0);n=void 0;const o=(0,j.kg)(t);!function(e,t){e.emit("startNavigationSpan",t),(0,r.o5)().setTransactionName(t.name),Ot(e)}(e,{name:o?.pathname||at.jf.location.pathname,attributes:{[s.i_]:"url",[s.JD]:"auto.navigation.browser"}}),(0,r.o5)().setSDKProcessingMetadata({normalizedRequest:{...(0,at.AP)(),url:t}})})}S&&(at.jf.document?at.jf.document.addEventListener("visibilitychange",()=>{const e=(0,u.Bk)();if(!e)return;const t=(0,u.zU)(e);if(at.jf.document.hidden&&t){const e="cancelled",{op:n,status:r}=(0,u.et)(t);ot.T&&a.vF.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:h.TJ,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ot.T&&a.vF.warn("[Tracing] Could not set up background tab detection due to lack of global document")),m&&function(e,t,n,r,i){let o;at.jf.document&&addEventListener("click",()=>{const c="ui.action.click",l=Ot(e);if(l){const e=(0,u.et)(l).op;
2if(["navigation","pageload"].includes(e))return void(ot.T&&a.vF.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`))}o&&(o.setAttribute(s.fs,"interactionInterrupted"),o.end(),o=void 0),i.name?o=I({name:i.name,op:c,attributes:{[s.i_]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r}):ot.T&&a.vF.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`)},{once:!1,capture:!0})}(e,b,y,_,t),o&&function(){const e=({entries:e})=>{const t=(0,u.Bk)(),n=t&&(0,u.zU)(t);e.forEach(e=>{if(!function(e){return"duration"in e}(e)||!n)return;const t=e.interactionId;if(null!=t&&!nt.has(t)){if(tt.length>10){const e=tt.shift();nt.delete(e)}tt.push(t),nt.set(t,n)}})};Re("event",e),Re("first-input",e)}(),_t(e,{traceFetch:w,traceXHR:T,trackFetchStreamPerformance:E,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:A,enableHTTPTimings:x,onRequestSpanStart:V})}}};function xt(e){const t=at.jf.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}const kt="_sentry_idleSpan";function Ot(e){return e[kt]}function Ct(e,t){(0,$.my)(e,kt,t)}},18047:function(e,t,n){var r;!function(i,s){"use strict";var o="function",a="undefined",c="object",u="string",l="major",d="model",p="name",f="type",h="vendor",m="version",g="architecture",v="console",b="mobile",y="tablet",_="smarttv",S="wearable",w="embedded",T="Amazon",E="Apple",A="ASUS",x="BlackBerry",k="Browser",O="Chrome",C="Firefox",I="Google",P="Honor",R="Huawei",L="LG",N="Microsoft",D="Motorola",M="Nvidia",U="OnePlus",j="Opera",$="OPPO",F="Samsung",q="Sharp",B="Sony",z="Xiaomi",H="Zebra",V="Facebook",K="Chromium OS",J="Mac OS",G=" Browser",W=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},X=function(e,t){return typeof e===u&&-1!==Z(t).indexOf(Z(e))},Z=function(e){return e.toLowerCase()},Q=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,500)},Y=function(e,t){for(var n,r,i,a,u,l,d=0;d<t.length&&!u;){var p=t[d],f=t[d+1];for(n=r=0;n<p.length&&!u&&p[n];)if(u=p[n++].exec(e))for(i=0;i<f.length;i++)l=u[++r],typeof(a=f[i])===c&&a.length>0?2===a.length?typeof a[1]==o?this[a[0]]=a[1].call(this,l):this[a[0]]=a[1]:3===a.length?typeof a[1]!==o||a[1].exec&&a[1].test?this[a[0]]=l?l.replace(a[1],a[2]):s:this[a[0]]=l?a[1].call(this,l,a[2]):s:4===a.length&&(this[a[0]]=l?a[3].call(this,l.replace(a[1],a[2])):s):this[a]=l||s;d+=2}},ee=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(X(t[n][r],e))return"?"===n?s:n}else if(X(t[n],e))return"?"===n?s:n;return t.hasOwnProperty("*")?t["*"]:e},te={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"},ne={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,m],[/opios[\/ ]+([\w\.]+)/i],[m,[p,j+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[p,j+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[p,j]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[p,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[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,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[p,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[p,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[p,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[p,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+k],m],[/\bfocus\/([\w\.]+)/i],[m,[p,C+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[p,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[p,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[p,"MIUI"+G]],[/fxios\/([\w\.-]+)/i],[m,[p,C]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[p,"360"]],[/\b(qq)\/([\w\.]+)/i],[[p,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1"+G],m],[/samsungbrowser\/([\w\.]+)/i],[m,[p,F+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[p,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[p],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,V],m],[/(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,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[p,"GSA"]],[/musical_ly(?:.
2+app_?version\/|_)([\w\.]+)/i],[m,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[p,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,O+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[p,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[m,ee,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[p,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[p,C+" 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,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[p,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[g,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[g,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[g,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[g,/ower/,"",Z]],[/ sun4\w[;\)]/i],[[g,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[g,Z]]],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],[d,[h,F],[f,y]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[h,F],[f,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[h,E],[f,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[h,E],[f,y]],[/(macintosh);/i],[d,[h,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[h,q],[f,b]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[d,[h,P],[f,y]],[/honor([-\w ]+)[;\)]/i],[d,[h,P],[f,b]],[/\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],[d,[h,R],[f,y]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[h,R],[f,b]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[d,/_/g," "],[h,z],[f,y]],[/\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],[[d,/_/g," "],[h,z],[f,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[h,$],[f,b]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[d,[h,ee,{OnePlus:["304","403","203"],"*":$}],[f,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[h,"Vivo"],[f,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[h,"Realme"],[f,b]],[/\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],[d,[h,D],[f,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[h,D],[f,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[h,L],[f,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[h,L],[f,b]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
2(?: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],[d,[h,"Lenovo"],[f,y]],[/(nokia) (t[12][01])/i],[h,d,[f,y]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[d,/_/g," "],[f,b],[h,"Nokia"]],[/(pixel (c|tablet))\b/i],[d,[h,I],[f,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[h,I],[f,b]],[/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],[d,[h,B],[f,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[h,B],[f,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[h,U],[f,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[h,T],[f,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[h,T],[f,b]],[/(playbook);[-\w\),; ]+(rim)/i],[d,h,[f,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[h,x],[f,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[h,A],[f,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[h,A],[f,b]],[/(nexus 9)/i],[d,[h,"HTC"],[f,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[d,/_/g," "],[f,b]],[/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],[d,[h,"TCL"],[f,y]],[/(itel) ((\w+))/i],[[h,Z],d,[f,ee,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[h,"Acer"],[f,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[h,"Meizu"],[f,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[h,"Ulefone"],[f,b]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[h,"Energizer"],[f,b]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[h,"Cat"],[f,b]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[h,"Smartfren"],[f,b]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[h,"Nothing"],[f,b]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[d,[h,"Archos"],[f,y]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[d,[h,"Archos"],[f,b]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[h,d,[f,y]],[/(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,d,[f,b]],[/(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,d,[f,y]],[/(surface duo)/i],[d,[h,N],[f,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[h,"Fairphone"],[f,b]],[/(u304aa)/i],[d,[h,"AT&T"],[f,b]],[/\bsie-(\w*)/i],[d,[h,"Siemens"],[f,b]],[/\b(rct\w+) b/i],[d,[h,"RCA"],[f,y]],[/\b(venue[\d ]{2,7}) b/i],[d,[h,"Dell"],[f,y]],[/\b(q(?:mv|ta)\w+) b/i],[d,[h,"Verizon"],[f,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[h,"Barnes & Noble"],[f,y]],[/\b(tm\d{3}\w+) b/i],[d,[h,"NuVision"],[f,y]],[/\b(k88) b/i],[d,[h,"ZTE"],[f,y]],[/\b(nx\d{3}j) b/i],[d,[h,"ZTE"],[f,b]],[/\b(gen\d{3}) b.+49h/i],[d,[h,"Swiss"],[f,b]],[/\b(zur\d{3}) b/i],[d,[h,"Swiss"],[f,y]],[/\b((zeki)?tb.*\b) b/i],[d,[h,"Zeki"],[f,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],d,[f,y]],[/\b(ns-?\w{0,9}) b/i],[d,[h,"Insignia"],[f,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[h,"NextBook"],[f,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],d,[f,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],d,[f,b]],[/\b(ph-1) /i],[d,[h,"Essential"],[f,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[h,"Envizen"],[f,y]],[/\b(trio[-\w\. ]+) b/i],[d,[h,"MachSpeed"],[f,y]],[/\btu_(1491) b/i],[d,[h,"Rotor"],[f,y]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[d,[h,M],[f,y]],[/(sprint) (\w+)/i],[h,d,[f,b]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[h,N],[f,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[h,H],[f,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[h,H],[f,b]],[/smart-tv.+(samsung)/i],[h,[f,_]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[h,F],[f,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,L],[f,_]],[/(apple) ?tv/i],[h,[d,E+" TV"],[f,_]],[/crkey/i],[[d,O+"cast"],[h,I],[f,_]],[/droid.+aft(\w+)( bui|\))/i],[d,[h,T],[f,_]],[/(shield \w+ tv)/i],[d,[h,M],[f,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[h,q],[f,_]],[/(bravia[\w ]+)( bui|\))/i],[d,[h,B],[f,_]],[/(mi(tv|box)-?\w+) bui/i],[d,[h,z],[f,_]],[/Hbbtv.*(technisat) (.*);/i],[h,d,[f,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,Q],[d,Q],[f,_]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[d,[f,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,d,[f,v]],[/droid.+; (shield)( bui|\))/i],[d,[h,M],[f,v]],[/(playstation \w+)/i],[d,[h,B],[f,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[h,N],[f,v]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[d,[h,F],[f,S]],[/((pebble))app/i,/(asu
vendor: 5,757 bytes, line 2
2s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[h,d,[f,S]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[d,[h,$],[f,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[h,E],[f,S]],[/(opwwe\d{3})/i],[d,[h,U],[f,S]],[/(moto 360)/i],[d,[h,D],[f,S]],[/(smartwatch 3)/i],[d,[h,B],[f,S]],[/(g watch r)/i],[d,[h,L],[f,S]],[/droid.+; (wt63?0{2,3})\)/i],[d,[h,H],[f,S]],[/droid.+; (glass) \d/i],[d,[h,I],[f,S]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,d,[f,S]],[/; (quest( \d| pro)?)/i],[d,[h,V],[f,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,w]],[/(aeobc)\b/i],[d,[h,T],[f,w]],[/(homepod).+mac os/i],[d,[h,E],[f,w]],[/windows iot/i],[[f,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[f,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[f,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,b]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[d,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[p,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[p,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[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,m],[/ladybird\//i],[[p,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[p,[m,ee,te]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,ee,te],[p,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,J],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,p],[/(ubuntu) ([\w\.]+) like android/i],[[p,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[p,m],[/\(bb(10);/i],[m,[p,x]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[p,C+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[p,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,K],m],[/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,m],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,m]]},re=function(e,t){if(typeof e===c&&(t=e,e=s),!(this instanceof re))return new re(e,t).getResult();var n=typeof i!==a&&i.navigator?i.navigator:s,r=e||(n&&n.userAgent?n.userAgent:""),v=n&&n.userAgentData?n.userAgentData:s,_=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(ne,t):ne,S=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[p]=s,t[m]=s,Y.call(t,r,_.browser),t[l]=typeof(e=t[m])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:s,S&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[p]="Brave"),t},this.getCPU=function(){var e={};return e[g]=s,Y.call(e,r,_.cpu),e},this.getDevice=function(){var e={};return e[h]=s,e[d]=s,e[f]=s,Y.call(e,r,_.device),S&&!e[f]&&v&&v.mobile&&(e[f]=b),S&&"Macintosh"==e[d]&&n&&typeof n.standalone!==a&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[f]=y),e},this.getEngine=function(){var e={};return e[p]=s,e[m]=s,Y.call(e,r,_.engine),e},this.getOS=function(){var e={};return e[p]=s,e[m]=s,Y.call(e,r,_.os),S&&!e[p]&&v&&v.platform&&"Unknown"!=v.platform&&(e[p]=v.platform.replace(/chrome os/i,K).replace(/macos/i,J)),e},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 r},this.setUA=function(e){return r=typeof e===u&&e.length>500?Q(e,500):e,this},this.setUA(r),this};re.VERSION="1.0.41",re.BROWSER=W([p,m,l]),re.CPU=W([g]),re.DEVICE=W([d,h,f,v,b,_,y,S,w]),re.ENGINE=re.OS=W([p,m]),typeof t!==a?(e.exports&&(t=e.exports=re),t.UAParser=re):n.amdO?(r=function(){return re}.call(t,n,t,e))===s||(e.exports=r):typeof i!==a&&(i.UAParser=re);var ie=typeof i!==a&&(i.jQuery||i.Zepto);if(ie&&!ie.ua){var se=new re;ie.ua=se.getResult(),ie.ua.get=function(){return se.getUA()},ie.ua.set=function(e){se.setUA(e);var t=se.getResult();for(var n in t)ie.ua[n]=t[n]}}}("object"==typeof window?window:this)},18169:(e,t,n)=>{"use strict";n.d(t,{NJ:()=>o,a3:()=>a,m7:()=>c});var r=n(7365),i=n(40417);const s=n(89170).O;function o(){return"history"in s&&!!s.history}function a(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function c(){if("string"==typeof EdgeRuntime)return!0;
2if(!function(){if(!("fetch"in s))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(a(s.fetch))return!0;let e=!1;const t=s.document;if(t&&"function"==typeof t.createElement)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(e){r.T&&i.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},18220:(e,t,n)=>{"use strict";n.d(t,{Bm:()=>i,Ij:()=>r});const r="data-faro-user-action-name",i=(r.replace(/-name$/,"-timeout"),1e3)},19063:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{A:()=>o})},21722:(e,t,n)=>{"use strict";n.d(t,{GS:()=>c,HF:()=>m,W4:()=>p,my:()=>u,pO:()=>l,sp:()=>d});var r=n(7365),i=n(44977),s=n(77297),o=n(40417),a=n(27976);function c(e,t,n){if(!(t in e))return;const i=e[t];if("function"!=typeof i)return;const s=n(i);"function"==typeof s&&l(s,i);try{e[t]=s}catch{r.T&&o.vF.log(`Failed to replace method "${t}" in object`,e)}}function u(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){r.T&&o.vF.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function l(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,u(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function p(e){if((0,s.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...h(e)};if((0,s.xH)(e)){const t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...h(e)};return"undefined"!=typeof CustomEvent&&(0,s.tH)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function f(e){try{return(0,s.vq)(e)?(0,i.Hd)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function h(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function m(e,t=40){const n=Object.keys(p(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return(0,a.xv)(r,t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:(0,a.xv)(r,t)}return""}},22532:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});var r=n(2339);class i{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[];const t=new Set;for(const e of this._propagators){const n="function"==typeof e.fields?e.fields():[];for(const e of n)t.add(e)}this._fields=Array.from(t)}inject(e,t,n){for(const i of this._propagators)try{i.inject(e,t,n)}catch(e){r.s.warn(`Failed to inject with ${i.constructor.name}. Err: ${e.message}`)}}extract(e,t,n){return this._propagators.reduce((e,i)=>{try{return i.extract(e,t,n)}catch(e){r.s.warn(`Failed to extract with ${i.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}},22599:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var r=class e{constructor(){this.subscribers=[]}subscribe(e){return this.subscribers.push(e),{unsubscribe:()=>this.unsubscribe(e)}}unsubscribe(e){this.subscribers=this.subscribers.filter(t=>t!==e)}
2notify(e){this.subscribers.forEach(t=>t(e))}first(){const t=new e,n=e=>{t.notify(e),r.unsubscribe()},r=this.subscribe(n),i=t.unsubscribe.bind(t);return this.withUnsubscribeOverride(t,i,n)}takeWhile(t){const n=new e,r=e=>{t(e)?n.notify(e):n.unsubscribe(r)};this.subscribe(r);const i=n.unsubscribe.bind(n);return this.withUnsubscribeOverride(n,i,r)}filter(t){const n=new e,r=e=>{t(e)&&n.notify(e)};this.subscribe(r);const i=n.unsubscribe.bind(n);return this.withUnsubscribeOverride(n,i,r)}merge(...t){const n=new e,r=[];t.forEach(e=>{const t=e.subscribe(e=>{n.notify(e)});r.push(t)});const i=n.unsubscribeAll.bind(n);return n.unsubscribe=()=>{r.forEach(e=>e.unsubscribe()),i()},n}withUnsubscribeOverride(e,t,n){return e.unsubscribe=e=>{t(e),this.unsubscribe(n)},e}unsubscribeAll(){this.subscribers=[]}}},23202:(e,t,n)=>{"use strict";function r(e){}function i(e){}function s(e){}function o(e){}n.d(t,{HF:()=>r,Ix:()=>i,Jk:()=>s,f7:()=>o})},25465:(e,t,n)=>{"use strict";n.d(t,{_:()=>c});var r=n(98902),i=n(71895),s=n(32535);const o="context",a=new class{active(){return r.l}with(e,t,n,...r){return t.call(n,...r)}bind(e,t){return t}enable(){return this}disable(){return this}};class c{constructor(){}static getInstance(){return this._instance||(this._instance=new c),this._instance}setGlobalContextManager(e){return(0,i.$G)(o,e,s.K.instance())}active(){return this._getContextManager().active()}with(e,t,n,...r){return this._getContextManager().with(e,t,n,...r)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return(0,i.mS)(o)||a}disable(){this._getContextManager().disable(),(0,i.kv)(o,s.K.instance())}}},25654:(e,t,n)=>{"use strict";n.d(t,{Td:()=>o,Vl:()=>i,ki:()=>s,nT:()=>a,wM:()=>r});const r="view_changed",i="session_start",s="session_resume",o="session_extend",a="service_name_override"},26514:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});class r{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class i{_isCalled=!1;_deferred=new r;_callback;_that;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}},26916:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>r,Fm:()=>o,MM:()=>s,gG:()=>i});const r="com.grafana.faro.session",i=9e5,s=1e3,o={enabled:!0,persistent:!1,maxSessionPersistenceTime:i}},27066:(e,t)=>{"use strict";function n(e,t){return Object.keys(e).map(n=>r(n,e[n],t))}function r(e,t,n){return{key:e,value:i(t,n)}}function i(e,t){const n=typeof e;if("string"===n)return{stringValue:e};if("number"===n)return Number.isInteger(e)?{intValue:e}:{doubleValue:e};if("boolean"===n)return{boolValue:e};if(e instanceof Uint8Array)return{bytesValue:t.encodeUint8Array(e)};if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=i(e[r],t);return{arrayValue:{values:n}}}if("object"===n&&null!=e){const n=Object.keys(e),r=new Array(n.length);for(let s=0;s<n.length;s++)r[s]={key:n[s],value:i(e[n[s]],t)};return{kvlistValue:{values:r}}}return{}}Object.defineProperty(t,"__esModule",{value:!0}),t.toAnyValue=t.toKeyValue=t.toAttributes=t.createInstrumentationScope=t.createResource=void 0,t.createResource=function(e,t){const r={attributes:n(e.attributes,t),droppedAttributesCount:0},i=e.schemaUrl;return i&&""!==i&&(r.schemaUrl=i),r},t.createInstrumentationScope=function(e,t){const r={name:e.name,version:e.version};return e.attributes&&Object.keys(e.attributes).length>0&&(r.attributes=n(e.attributes,t),r.droppedAttributesCount=e.droppedAttributesCount??0),r},t.toAttributes=n,t.toKeyValue=r,t.toAnyValue=i},27511:(e,t,n)=>{"use strict";n.d(t,{Ki:()=>s,iM:()=>o});var r=n(3576),i=n(27840);function s(e=""){return r.P.transports.transports.flatMap(e=>e.getIgnoreUrls()).some(t=>e&&null!=e.match(t))}function o(e){return(0,i.Kg)(e)?e:e instanceof URL?e.href:!(0,i.Im)(e)&&(0,i.Tn)(null==e?void 0:e.toString)?e.toString():void 0}},27520:(e,t,n)=>{"use strict";function r(){return Date.now()}function i(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}function s(){return(new Date).toISOString()}function o(e){return new Date(e).toISOString()}n.d(t,{AU:()=>i,mI:()=>s,q5:()=>o,x3:()=>r})},27661:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(19063).A)({},console)},27840:(e,t,n)=>{"use strict";function r(e,t){return typeof e===t}function i(e,t){return Object.prototype.toString.call(e)===`[object ${t}]`}function s(e,t){try{return e instanceof t}catch(e){return!1}}n.d(t,{Ed:()=>r,Et:()=>c,Gv:()=>l,Im:()=>S,Kg:()=>a,Lm:()=>u,T2:()=>b,Tn:()=>d,bJ:()=>v,cy:()=>p,kZ:()=>o,pp:()=>y,sO:()=>
2f,wX:()=>_,xH:()=>m});const o=e=>r(e,"null"),a=e=>r(e,"string"),c=e=>r(e,"number")&&!isNaN(e)||r(e,"bigint"),u=e=>r(e,"boolean"),l=e=>!o(e)&&r(e,"object"),d=e=>r(e,"function"),p=e=>i(e,"Array"),f=e=>!l(e)&&!d(e),h="undefined"!=typeof Event,m=e=>h&&s(e,Event),g="undefined"!=typeof Error,v=e=>g&&s(e,Error),b=e=>i(e,"ErrorEvent"),y=e=>i(e,"DOMError"),_=e=>i(e,"DOMException");function S(e){return null==e||(p(e)||a(e)?0===e.length:!!l(e)&&0===Object.keys(e).length)}},27976:(e,t,n)=>{"use strict";n.d(t,{Xr:()=>o,gt:()=>s,xv:()=>i});var r=n(77297);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function s(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const i=e[t];try{(0,r.L2)(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function o(e,t=[],n=!1){return t.some(t=>function(e,t,n=!1){return!!(0,r.Kg)(e)&&((0,r.gd)(t)?t.test(e):!!(0,r.Kg)(t)&&(n?e===t:e.includes(t)))}(e,t,n))}},28261:(e,t,n)=>{"use strict";n.d(t,{$X:()=>a,GR:()=>l,M6:()=>u,eJ:()=>s,gO:()=>c});var r=n(21722),i=n(89170);function s(e=function(){const e=i.O;return e.crypto||e.msCrypto}()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function o(e){return e.exception?.values?.[0]}function a(e){const{message:t,event_id:n}=e;if(t)return t;const r=o(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function c(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function u(e,t){const n=o(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r?.data,...t.data};n.mechanism.data=e}}function l(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,r.my)(e,"__sentry_captured__",!0)}catch(e){}return!1}},28279:(e,t,n)=>{"use strict";n.d(t,{De:()=>l,sv:()=>o,yD:()=>u});var r=n(7365),i=n(77297),s=n(40417);const o="sentry-",a=/^sentry-/,c=8192;function u(e){const t=function(e){if(e&&((0,i.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{const n=d(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):d(e)}(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>(t.match(a)&&(e[t.slice(o.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function l(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],i)=>{const o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===i?o:`${e},${o}`;return a.length>c?(r.T&&s.vF.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${o}${t}`]=n),e),{}))}function d(e){return e.split(",").map(e=>e.split("=").map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}},31547:(e,t,n)=>{"use strict";n.d(t,{vI:()=>s,vc:()=>i});var r=n(75736);const i={debug:r.l,error:r.l,info:r.l,prefix:"Faro",warn:r.l},s=1},31720:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});var r=n(13241);const i="process.runtime.name",s={[r.Jqu]:"opentelemetry",[i]:"browser",[r.E$0]:r.qVR,[r.aJA]:"2.10.0"}},32535:(e,t,n)=>{"use strict";n.d(t,{K:()=>a});var r=n(71895);class i{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return s("debug",this._namespace,e)}error(...e){return s("error",this._namespace,e)}info(...e){return s("info",this._namespace,e)}warn(...e){return s("warn",this._namespace,e)}verbose(...e){return s("verbose",this._namespace,e)}}function s(e,t,n){const i=(0,r.mS)("diag");if(i)return i[e](t,...n)}var o=n(79232);class a{static instance(){return this._instance||(this._instance=new a),this._instance}constructor(){function e(e){return function(...t){const n=(0,r.mS)("diag");if(n)return n[e](...t)}}const t=this;t.setLogger=(e,n={logLevel:o.u.INFO})=>{var i,s,a;if(e===t){const e=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(i=e.stack)&&void 0!==i?i:e.message),!1}"number"==typeof n&&(n={logLevel:n});const c=(0,r.mS)("diag"),u=function(e,t){function n(n,r){const i=t[n];return"function"==typeof i&&e>=r?i.bind(t):function(){}}return e<o.u.NONE?e=o.u.NONE:e>o.u.ALL&&(e=o.u.ALL),t=t||{},{error:n("error",o.u.ERROR),warn:n("warn",o.u.WARN),info:n("info",o.u.INFO),debug:n("debug",o.u.DEBUG),verbose
2:n("verbose",o.u.VERBOSE)}}(null!==(s=n.logLevel)&&void 0!==s?s:o.u.INFO,e);if(c&&!n.suppressOverrideMessage){const e=null!==(a=(new Error).stack)&&void 0!==a?a:"<failed to generate stacktrace>";c.warn(`Current logger will be overwritten from ${e}`),u.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,r.$G)("diag",u,t,!0)},t.disable=()=>{(0,r.kv)("diag",t)},t.createComponentLogger=e=>new i(e),t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}}},32647:(e,t,n)=>{"use strict";n.d(t,{LE:()=>a,V7:()=>c,lu:()=>u});var r=n(62659),i=n(45436),s=n(40685),o=n(76772);function a(e,t,n,r){const o=(0,s.Cj)(n),a={sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:(0,i.SB)(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,s.h4)(a,[c])}function c(e,t,n,r){const i=(0,s.Cj)(n),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){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,n?.sdk);const a=(0,s.n2)(e,i,r,t);delete e.sdkProcessingMetadata;const c=[{type:o},e];return(0,s.h4)(a,[c])}function u(e,t){const n=(0,r.k1)(e[0]),a=t?.getDsn(),c=t?.getOptions().tunnel,u={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!c&&a&&{dsn:(0,i.SB)(a)}},l=t?.getOptions().beforeSendSpan,d=l?e=>{const t=(0,o.et)(e);return l(t)||((0,o.xl)(),t)}:o.et,p=[];for(const t of e){const e=d(t);e&&p.push((0,s.y5)(e))}return(0,s.h4)(u,p)}},33835:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});const r=n(25465)._.getInstance()}
2,34564:(e,t,n)=>{"use strict";n.d(t,{RV:()=>p,gd:()=>a,qQ:()=>d,vk:()=>c,yF:()=>i});const r=50,i="?",s=/\(error: (.*)\)/,o=/captureMessage|captureException/;function a(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,a=0)=>{const c=[],l=e.split("\n");for(let e=n;e<l.length;e++){const n=l[e];if(n.length>1024)continue;const i=s.test(n)?n.replace(s,"$1"):n;if(!i.match(/\S*Error: /)){for(const e of t){const t=e(i);if(t){c.push(t);break}}if(c.length>=r+a)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(u(t).function||"")&&t.pop(),t.reverse(),o.test(u(t).function||"")&&(t.pop(),o.test(u(t).function||"")&&t.pop()),t.slice(0,r).map(e=>({...e,filename:e.filename||u(t).filename,function:e.function||i}))}(c.slice(a))}}function c(e){return Array.isArray(e)?a(...e):e}function u(e){return e[e.length-1]||{}}const l="<anonymous>";function d(e){try{return e&&"function"==typeof e&&e.name||l}catch(e){return l}}function p(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){return}}}},35596:(e,t,n)=>{"use strict";n.d(t,{_:()=>c});var r=n(91068),i=n(18169),s=n(21722),o=n(80845);let a;function c(e){const t="history";(0,r.s5)(t,e),(0,r.AS)(t,u)}function u(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const i=a,s=function(e){try{return new URL(e,o.j.location.origin).toString()}catch{return e}}(String(n));if(a=s,i===s)return e.apply(this,t);const c={from:i,to:s};(0,r.aj)("history",c)}return e.apply(this,t)}}o.j.addEventListener("popstate",()=>{const e=o.j.location.href,t=a;if(a=e,t===e)return;const n={from:t,to:e};(0,r.aj)("history",n)}),(0,i.NJ)()&&((0,s.GS)(o.j.history,"pushState",e),(0,s.GS)(o.j.history,"replaceState",e))}},36275:(e,t,n)=>{"use strict";var r;n.d(t,{V:()=>r}),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(r||(r={}))},37168:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>a,J0:()=>d,J5:()=>h,Ol:()=>l,o:()=>u,r:()=>c});var r=n(67099),i=n(87655),s=n(80608),o=n(89170);function a(e,t){return(0,r.o5)().captureException(e,(0,s.li)(t))}function c(e,t){return(0,r.o5)().captureEvent(e,t)}function u(e,t){(0,r.rm)().setContext(e,t)}function l(){const e=(0,r.KU)();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function d(e){const t=(0,r.rm)(),n=(0,r.o5)(),{userAgent:s}=o.O.navigator||{},a=(0,i.fj)({user:n.getUser()||t.getUser(),...s&&{userAgent:s},...e}),c=t.getSession();return"ok"===c?.status&&(0,i.qO)(c,{status:"exited"}),p(),t.setSession(a),a}function p(){const e=(0,r.rm)(),t=(0,r.o5)().getSession()||e.getSession();t&&(0,i.Vu)(t),f(),e.setSession()}function f(){const e=(0,r.rm)(),t=(0,r.KU)(),n=e.getSession();n&&t&&t.captureSession(n)}function h(e=!1){e?p():f()}},39302:(e,t,n)=>{"use strict";t.w9=void 0;const r=n(2753),i=n(80066);function s(e){const t=BigInt(1e9);return BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))}const o="undefined"!=typeof BigInt?function(e){return s(e).toString()}:r.hrTimeToNanoseconds;function a(e){return e}i.hexToBinary,t.w9={encodeHrTime:o,encodeSpanContext:a,encodeOptionalSpanContext:a,encodeUint8Array:e=>{if("undefined"!=typeof Buffer)return Buffer.from(e).toString("base64");const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=String.fromCharCode(e[n]);return btoa(t.join(""))}}},39745:(e,t,n)=>{"use strict";n.d(t,{Bc:()=>f,OW:()=>h,h$:()=>v,vP:()=>m});var r=n(42547),i=n(26916),s=n(16528),o=n(92807),a=n(27520),c=n(3576),u=n(45877),l=n(27840),d=n(71216),p=n(25654);function f({sessionId:e,started:t,lastActivity:n,isSampled:r=!0}={}){var i;const s=(0,a.x3)(),o=null===(i=c.P.config)||void 0===i||null===(i=i.sessionTracking)||void 0===i?void 0:i.generateSessionId;return null==e&&(e="function"==typeof o?o():(0,u.S)()),{sessionId:e,lastActivity:null!=n?n:s,started:null!=t?t:s,isSampled:r}}function h(e){if(null==e)return!1;const t=(0,a.x3)();return t-e.started<144e5&&t-e.lastActivity<i.gG}function m({fetchUserSession:e,storeUserSession:t,adoptSession:n}){return function({forceSessionExtend:i}={forceSessionExtend:!1}){if(!e||!t)return;const u=c.P.config.sessionTracking,l=null==u?void 0:u.persistent;if(l&&!r.OE||!l&&!r.Vv)return;const d=e();if(!1===i&&h(d)){var p;t((0,o.A)((0,o.A)({},d),{},{lastActivity:(0,a.x3)()}));const e=null===(p=c.P.metas.value.session)||void 0===p?void 0:p.id;null!=n&&null!=d.sessionMeta&&d.sessionId!==e&&n(d.sessionMeta)}else{var m,v,b;
2let e=g(f({isSampled:(0,s.$)()}),d);t(e),null===(m=c.P.api)||void 0===m||m.setSession(e.sessionMeta),null==u||null===(v=u.onSessionChange)||void 0===v||v.call(u,null!==(b=null==d?void 0:d.sessionMeta)&&void 0!==b?b:null,e.sessionMeta)}}}function g(e,t){var n,r,i,s,a,u;const d=(0,o.A)((0,o.A)({},e),{},{sessionMeta:{id:e.sessionId,attributes:b((0,o.A)((0,o.A)((0,o.A)({},null===(n=c.P.config.sessionTracking)||void 0===n||null===(n=n.session)||void 0===n?void 0:n.attributes),null!==(r=null===(i=c.P.metas.value.session)||void 0===i?void 0:i.attributes)&&void 0!==r?r:{}),{},{isSampled:e.isSampled.toString()}))}}),p=null!==(s=null===(a=c.P.metas.value.session)||void 0===a?void 0:a.overrides)&&void 0!==s?s:null==t||null===(u=t.sessionMeta)||void 0===u?void 0:u.overrides;(0,l.Im)(p)||(d.sessionMeta.overrides=p);const f=null==t?void 0:t.sessionId;return null!=f&&(d.sessionMeta.attributes.previousSession=f),d}function v({fetchUserSession:e,storeUserSession:t}){let n=!1;return function(r){if(n)return;const i=r.session,o=e();let a=null==i?void 0:i.id;const u=null==i?void 0:i.attributes,l=null==i?void 0:i.overrides,h=null==o?void 0:o.sessionMeta,m=null==h?void 0:h.overrides,v=!!l&&!(0,d.b)(l,m),b=!!u&&!(0,d.b)(u,null==h?void 0:h.attributes);if(i&&a!==(null==o?void 0:o.sessionId)||b||v){const e=g(f({sessionId:a,isSampled:(0,s.$)()}),o);t(e),function(e,t={},n={}){var r,i,s;if(!e)return;const o=t.serviceName,a=null!==(r=null!==(i=n.serviceName)&&void 0!==i?i:null===(s=c.P.metas.value.app)||void 0===s?void 0:s.name)&&void 0!==r?r:"";o&&o!==a&&c.P.api.pushEvent(p.nT,{serviceName:o,previousServiceName:a})}(v,l,m),n=!0;try{c.P.api.setSession(e.sessionMeta)}finally{n=!1}}}}function b(e){const t={};for(const n of Object.keys(e)){const r=e[n];void 0!==r&&(t[n]=r)}return t}},40417:(e,t,n)=>{"use strict";n.d(t,{Ow:()=>o,Z9:()=>a,pq:()=>c,vF:()=>u});var r=n(43223),i=n(7365),s=n(89170);const o=["debug","info","warn","error","log","assert","trace"],a={};function c(e){if(!("console"in s.O))return e();const t=s.O.console,n={},r=Object.keys(a);r.forEach(e=>{const r=a[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}const u=(0,r.BY)("logger",function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return i.T?o.forEach(n=>{t[n]=(...t)=>{e&&c(()=>{s.O.console[n](`Sentry Logger [${n}]:`,...t)})}}):o.forEach(e=>{t[e]=()=>{}}),t})},40685:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>g,W3:()=>c,bN:()=>d,bm:()=>f,h4:()=>a,n2:()=>v,y5:()=>p,yH:()=>u,zk:()=>m});var r=n(43223),i=n(45436),s=n(78402),o=n(89170);function a(e,t=[]){return[e,t]}function c(e,t){const[n,r]=e;return[n,[...r,t]]}function u(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function l(e){const t=(0,r.Se)(o.O);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function d(e){const[t,n]=e;let r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[l(r),e]:r.push("string"==typeof e?l(e):e)}for(const e of n){const[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,s.S8)(n))}i(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function p(e){return[{type:"span"},e]}function f(e){const t="string"==typeof e.data?l(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const h={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 m(e){return h[e]}function g(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function v(e,t,n,r){const s=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:(0,i.SB)(r)},...s&&{trace:s}}}},40920:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=e=>e.map(e=>{try{return String(e)}catch(e){return""}}).join(" ")},41437:(e,t,n)=>{"use strict";n.d(t,{Ir:()=>b,JU:()=>m,KJ:()=>l,VL:()=>v,W5:()=>d,YP:()=>g,_5:()=>u,lg:()=>a,mw:()=>y,tq:()=>p,u5:()=>f,uc:()=>c,w_:()=>h});var r=n(11419);const i=9,s=Math.pow(10,6),o=Math.pow(10,i);function a(e){const t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*s)]}function c(){return r.ug.timeOrigin}function u(e){return y(a(r.ug.timeOrigin),a("number"==typeof e?e:r.ug.now()))}function l(e){if(v(e))return e;if("number"==typeof e)return e<r.ug.timeOrigin/2?u(e):a(e);if(e instanceof Date)return a(e.getTime());throw TypeError("Invalid input type")}function d(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=o),[n,r]}function p(e){const t=i,n=`${"0".repeat(t)}${e[1]}Z`,r=n.substring(n.length-t-1);return new Date(1e3*e[0]).toISOString().replace("000Z",r)}function f(e){return e[0]*o+e[1]}function h(e){return 1e6*e[0]+e[1]/1e3}function m(e){return 1e3*e[0]+e[1]/1e6}function g(e){return e[0]+e[1]/o}function v(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function b(e){return v(e)||"number"==typeof e||e instanceof Date}function y(e,t){const n=[e[0]+t[0],e[1]+t[1]];return n[1]>=o&&(n[1]-=o,n[0]+=1),n}},41708:(e,t,n)=>{"use strict";function r(e,t){let n,r=!1;const i=()=>{null!=n?(e(...n),n=null,setTimeout(i,t)):r=!1};return(...s)=>{r?n=s:(e(...s),r=!0,setTimeout(i,t))}}n.d(t,{n:()=>r})},42547:(e,t,n)=>{"use strict";n.d(t,{Ai:()=>c,Gq:()=>
2o,OE:()=>u,SO:()=>a,Uy:()=>i,Vv:()=>l});var r=n(3576);const i={session:"sessionStorage",local:"localStorage"};function s(e){try{let t;t=window[e];const n="__faro_storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(n){var t;return null===(t=r.P.internalLogger)||void 0===t||t.info(`Web storage of type ${e} is not available. Reason: ${n}`),!1}}function o(e,t){return d(t)?window[t].getItem(e):null}function a(e,t,n){if(d(n))try{window[n].setItem(e,t)}catch(e){}}function c(e,t){d(t)&&window[t].removeItem(e)}const u=s(i.local),l=s(i.session);function d(e){return e===i.local?u:e===i.session&&l}},42823:(e,t,n)=>{"use strict";n.d(t,{MI:()=>o,TC:()=>c,kM:()=>a});var r=n(28279),i=n(5062),s=n(74904);const o=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e,t){const n=function(e){if(!e)return;const t=e.match(o);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),a=(0,r.yD)(t);if(!n?.traceId)return{traceId:(0,s.e)(),sampleRand:Math.random()};const c=function(e,t){const n=(0,i.i)(t?.sample_rand);if(void 0!==n)return n;const r=(0,i.i)(t?.sample_rate);return r&&void 0!==e?.parentSampled?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}(n,a);a&&(a.sample_rand=c.toString());const{traceId:u,parentSpanId:l,parentSampled:d}=n;return{traceId:u,parentSpanId:l,sampled:d,dsc:a||{},sampleRand:c}}function c(e=(0,s.e)(),t=(0,s.Z)(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}},44874:(e,t,n)=>{"use strict";n.d(t,{L7:()=>s,hD:()=>u,mx:()=>c,pX:()=>o});var r=n(57277),i=n(3250);function s(e){return e.reduce((e,t)=>{const n=`${e}${""!==e?i.EC:""}${t}`;return n.length>i.kI?e:n},"")}function o(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return void 0!==t.metadata&&(n+=i.hN+t.metadata.toString()),n})}function a(e){if(!e)return;const t=e.indexOf(i.hN),n=-1===t?e:e.substring(0,t),s=n.indexOf(i.un);if(s<=0)return;const o=n.substring(0,s).trim(),a=n.substring(s+1).trim();if(!o||!a)return;let c,u,l;try{c=decodeURIComponent(o),u=decodeURIComponent(a)}catch{return}if(-1!==t&&t<e.length-1){const n=e.substring(t+1);l=(0,r.B)(n)}return{key:c,value:u,metadata:l}}function c(e,t,n,r){let s=0;for(;s<e.length&&n<i.QC;){const o=e.indexOf(i.EC,s),c=-1===o?e.length:o,u=c-s;if(u<=i.KV){const o=a(e.substring(s,c));if(o){const e=(0===n?0:1)+u;if(r+e>i.kI)break;t[o.key]=o.metadata?{value:o.value,metadata:o.metadata}:{value:o.value},n++,r+=e}}if(-1===o)break;s=o+1}return[n,r]}function u(e){const t={};return"string"==typeof e&&e.length>0&&e.split(i.EC).forEach(e=>{const n=a(e);void 0!==n&&n.value.length>0&&(t[n.key]=n.value)}),t}},44977:(e,t,n)=>{"use strict";n.d(t,{$N:()=>c,Hd:()=>o,xE:()=>u});var r=n(77297);const i=n(89170).O,s=80;function o(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let o=0,c=0;const u=" > ",l=u.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||s;for(;n&&o++<r&&(d=a(n,p),!("html"===d||o>1&&c+i.length*l+d.length>=f));)i.push(d),c+=d.length,n=n.parentNode;return i.reverse().join(u)}catch(e){return"<unknown>"}}function a(e,t){const n=e,s=[];if(!n?.tagName)return"";if(i.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}s.push(n.tagName.toLowerCase());const o=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(o?.length)o.forEach(e=>{s.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&s.push(`#${n.id}`);const e=n.className;if(e&&(0,r.Kg)(e)){const t=e.split(/\s+/);for(const e of t)s.push(`.${e}`)}}const a=["aria-label","type","name","title","alt"];for(const e of a){const t=n.getAttribute(e);t&&s.push(`[${e}="${t}"]`)}return s.join("")}function c(){try{return i.document.location.href}catch(e){return""}}function u(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},45877:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});const r="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789";function i(e=10){const t=new Uint32Array(e),n="undefined"!=typeof globalThis?globalThis.crypto:void 0;if(null==n?void 0:n.getRandomValues)n.getRandomValues(t);else for(let n=0;n<e;n++)t[n]=Math.floor(4294967296*Math.random());let i="";for(let n=0;n<e;n++)i+=r[t[n]%59];return i}},46922:(e,t,n)=>{"use strict";n.d(t,{$:()=>v});var r=n(71895);const i={get(e,t){if(null!=e)return e[t]},keys:e=>null==e?[]:Object.keys(e)},s={set(e,t,n){null!=e&&(e[t]=n)}};var o=n(25465);const a=(0,n(98902).n)("OpenTelemetry Baggage Key");function c(e){return e.getValue(a)||void 0}function u(){return c(o._.getInstance().active())}function l(e,t){return e.setValue(a,t)}function d(e){return e.deleteValue(a)}var p=n(57277),f=n(32535);const h="propagation",m=new class{inject(e,t){}extract(e,t){return e}fields(){return[]}};class g{constructor(){this.createBaggage=p.L,this.getBaggage=c,this.getActiveBaggage=u,this.setBaggage=l,this.deleteBaggage=d}static getInstance(){return this._instance||(this._instance=new g),this._instance}setGlobalPropagator(e){return(0,r.$G)(h,e,f.K.instance())}inject(e,t,n=s){return this._getGlobalPropagator().inject(e,t,n)}extract(e,t,n=i){return this._getGlobalPropagator().extract(e,t,n)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,r.kv)(h,f.K.instance())}_getGlobalPropagator(){return(0,r.mS)(h)||m}}const v=g.getInstance()},47363:(e,t,n)=>{"use strict";n.d(t,{n:()=>u});const r="[_0-9a-z-*/]",i=new RegExp(`^(?:[a-z]${r}{0,255}|[a-z0-9]${r}{0,240}@[a-z]${r}{0,13})$`),s=/^[ -~]{0,255}[!-~]$/,o=/,|=/;function a(e){return i.test(e)}function c(e){return s.test(e)&&!o.test(e)}class u{_length;_rawTraceState;_internalState;constructor(e){this._rawTraceState="string"==typeof e?e:"",this._length=this._rawTraceState.length}set(e,t){if(!a(e)||!c(t))return this;const n=this._getState(),r=n.get(e);let i=this._length;if(i+="string"==typeof r?t.length-r.length:e.length+t.length+(n.size>0?2:1),i>512)return this;const s=new Map(n);return s.delete(e),s.set(e,t),this._fromState(s,i)}unset(e){const t=this._getState(),n=t.get(e);if("string"!=typeof n)return this;let r=this._length-(e.length+n.length+1);t.size>1&&(r-=1);const i=new Map(t);return i.delete(e),this._fromState(i,r)}get(e){return this._getState().get(e)}serialize(){let e="",t=0;for(const n of this._getState())t>0&&(e=","+e),e=`${n[0]}=${n[1]}`+e,t++;return e}_getState(){if(this._internalState)return this._internalState;const e=this._rawTraceState.split(","),t=new Map;let n=0;for(const r of e){const e=r.trim(),i=e.indexOf("=");if(-1===i)continue;const s=e.slice(0,i),o=e.slice(i+1);if(!a(s)||!c(o))continue;const u=n+e.length+(t.size>0?1:0);if(!(u>512)&&(t.set(s,o),n=u,t.size>=32))break}return this._length=n,this._internalState=new Map(Array.from(t.entries()).reverse()),this._internalState}_fromState(e,t){const n=Object.create(u.prototype);return n._internalState=e,n._length=t,n}}}
2,48698:(e,t,n)=>{"use strict";n.d(t,{t:()=>a});var r=n(46922),i=n(65890),s=n(3250),o=n(44874);class a{inject(e,t,n){const a=r.$.getBaggage(e);if(!a||(0,i.Zf)(e))return;const c=(0,o.pX)(a).filter(e=>e.length<=s.KV).slice(0,s.QC),u=(0,o.L7)(c);u.length>0&&n.set(t,s.r_,u)}extract(e,t,n){const i=n.get(t,s.r_);if(!i)return e;const a={};let c=0,u=0;if(Array.isArray(i))for(let e=0;e<i.length;e++)[c,u]=(0,o.mx)(i[e],a,c,u);else[c]=(0,o.mx)(i,a,c,u);return 0===c?e:r.$.setBaggage(e,r.$.createBaggage(a))}fields(){return[s.r_]}}},50120:(e,t,n)=>{"use strict";n.d(t,{CH:()=>o,Dl:()=>a,f:()=>c,kg:()=>s,nt:()=>i});const r="thismessage:/";function i(e){return"isRelative"in e}function s(e,t){const n=e.indexOf("://")<=0&&0!==e.indexOf("//"),i=t??(n?r:void 0);try{if("canParse"in URL&&!URL.canParse(e,i))return;const t=new URL(e,i);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function o(e){if(i(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 a(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 c(e){return e.split(/[?#]/,1)[0]}},50947:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});let r=function(e){return e[e.Started=0]="Started",e[e.Halted=1]="Halted",e[e.Cancelled=2]="Cancelled",e[e.Ended=3]="Ended",e}({})},53690:(e,t,n)=>{"use strict";n.d(t,{HU:()=>i,I1:()=>o,IU:()=>s,N$:()=>a,vb:()=>r});const r="resource-entry",i="http-request-start",s="http-request-end",o="dom-mutation",a="console"},55056:(e,t,n)=>{"use strict";n.d(t,{w:()=>At});var r=n(3576),i=n(45877),s=n(16528),o=n(92807),a=n(39745),c=n(61854),u=n(11312),l=n(10785),d=n(99408),p=n(25654),f=n(27520),h=class extends l.i{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-session",this.version=d.x,this.isAdoptingSession=()=>!1}sendSessionStartEvent(e){var t;const n=e.session;if(n&&n.id!==(null===(t=this.notifiedSession)||void 0===t?void 0:t.id)){var r;if(this.isAdoptingSession())return void(this.notifiedSession=n);if(this.notifiedSession&&this.notifiedSession.id===(null===(r=n.attributes)||void 0===r?void 0:r.previousSession))return this.api.pushEvent(p.Td,{},void 0,{skipDedupe:!0}),void(this.notifiedSession=n);this.notifiedSession=n,this.api.pushEvent(p.Vl,{},void 0,{skipDedupe:!0})}}createInitialSession(e,t){let n,u,l=e.fetchUserSession();if(t.persistent&&t.maxSessionPersistenceTime&&l){const e=(0,f.x3)();l.lastActivity<e-t.maxSessionPersistenceTime&&(c.G.removeUserSession(),l=null)}if((0,a.OW)(l)){var d,h;const e=null==l?void 0:l.sessionId;u=(0,a.Bc)({sessionId:e,isSampled:l.isSampled||!1,started:null==l?void 0:l.started});const r=null==l?void 0:l.sessionMeta,i=(0,o.A)((0,o.A)({},null===(d=t.session)||void 0===d?void 0:d.overrides),null==r?void 0:r.overrides);u.sessionMeta=(0,o.A)((0,o.A)({},t.session),{},{id:e,attributes:(0,o.A)((0,o.A)((0,o.A)({},null===(h=t.session)||void 0===h?void 0:h.attributes),null==r?void 0:r.attributes),{},{isSampled:u.isSampled.toString()}),overrides:i}),n=p.ki}else{var m,g,v,b;const e=null!==(m=null===(g=t.session)||void 0===g?void 0:g.id)&&void 0!==m?m:null!==(y=null===(_=r.P.config)||void 0===_||null===(_=_.sessionTracking)||void 0===_||null===(S=_.generateSessionId)||void 0===S?void 0:S.call(_))&&void 0!==y?y:(0,i.S)();u=(0,a.Bc)({sessionId:e,isSampled:(0,s.$)()});const c=null===(v=t.session)||void 0===v?void 0:v.overrides;u.sessionMeta=(0,o.A)({id:e,attributes:(0,o.A)({isSampled:u.isSampled.toString()},null===(b=t.session)||void 0===b?void 0:b.attributes)},c?{overrides:c}:{}),n=p.Vl}var y,_,S;return{initialSession:u,lifecycleType:n}}registerBeforeSendHook(e){var t;const n=new e;this.isAdoptingSession=n.isAdopting;const{updateSession:r}=n;let i;null===(t=this.transports)||void 0===t||t.addBeforeSendHooks(e=>{var t,n;const s=null===(t=this.metas.value.session)||void 0===t?void 0:t.id;r();const o=this.metas.value.session;null!=o&&null!=s&&o.id!==s&&(i={from:s,to:o});const a=null!=i&&(null===(n=e.meta.session)||void 0===n?void 0:n.id)===i.from,c=a?i.to:e.meta.session,u=null==c?void 0:c.attributes;if(u&&"true"===(null==u?void 0:u.isSampled)){var l;let t=JSON.parse(JSON.stringify(e));a&&(t.meta.session=JSON.parse(JSON.stringify(i.to)));const n=null===(l=t.meta.session)||void 0===l?void 0:l.attributes;var d;return null==n||delete n.isSampled,0===Object.keys(null!=n?n:{}).length&&(null===(d=t.meta.session)||void 0===d||delete d.attributes),t}return null})}initialize(){this.logDebug("init session instrumentation");const e=this.config.sessionTracking;if(null==e?void 0:e.enabled){const t=(0,u.R)(e);this.registerBeforeSendHook(t);const{initialSession:n,lifecycleType:r}=this.createInitialSession(t,e);t.storeUserSession(n);const i=n.sessionMeta;this.notifiedSession=i,this.api.setSession(i),r===p.Vl&&this.api.pushEvent(p.Vl,{},void 0,{skipDedupe:!0}),r===p.ki&&this.api.pushEvent(p.ki,{},void 0,{skipDedupe:!0})}this.metas.addListener(this.sendSessionStartEvent.bind(this))}},m=n(53690),g=n(22599),v=n(27661),b=n(57115);let y,_=!1;const S=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;var w=n(27840),T=n(67542);const E=e=>e.map(e=>(0,w.Gv)(e)?(0,T.xD)(e):String(e)).join(" ");var A=n(77868),x=n(83327);function k(e){let t,n,r,i,s=[];if((0,w.T2)(e)&&e.error)t=e.error.message,n=e.error.name,s=(0,x.D)(e.error);else if((r=(0,w.pp)(e))||(0,w.wX)(e)){const{name:i,message:s}=e;n=null!=i?i:r?"DOMError":"DOMException",t=s?`${n}: ${s}`:n}else(0,w.bJ)(e)?(n=e.name,t=e.message,s=(0,x.D)(e)):((0,w.Gv)(e)||(i=(0,w.xH)(e)))&&(n=i?e.constructor.name:void 0,t=`Non-Error exception captured with keys: ${Object.keys(e)}`);return[t,n,s]}function O(e){const[t,n,r,i,s]=e;let o,a,c=[];const u=(0,w.Kg)(t),l=(0,A.S)(n,"?",r,i);return s||!u?([o,a,c]=k(null!=s?s:t),0===c.length&&(c=[l])):u&&([o,a]=function(e){var t,n;const r=e.match(S),i=null!==(t=null==r?void 0:r[1])&&void 0!==t?t:"Error";return[null!==(n=null==r?void 0:r[2])&&void 0!==n?n:e,i]}(t),c=[l]),{value:o,type:a,stackFrames:c}}function C(e,t){return(0,w.bJ)(e[0])?O(e):{value:t(e)}}var I=n(40920),P=class e extends l.i{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-console",this.version=d.x,this.errorSerializer
2=I.Z}initialize(){var t,n;const r=this.config.consoleInstrumentation,i=(null==r?void 0:r.serializeErrors)||!!(null==r?void 0:r.errorSerializer);this.errorSerializer=i?null!==(t=null==r?void 0:r.errorSerializer)&&void 0!==t?t:E:I.Z;const s=null!==(n=null==r?void 0:r.disabledLevels)&&void 0!==n?n:e.defaultDisabledLevels,o=function(e){if(y||(y=new g.c),!_){const t=null!=e?e:v.Z;b.HT.forEach(e=>{console[e]=(...n)=>{var r;y.notify({type:m.N$,level:e,args:n}),null===(r=t[e])||void 0===r||r.apply(console,n)}}),_=!0}return y}(this.unpatchedConsole);this.subscription=o.subscribe(({level:t,args:n})=>{if(!s.includes(t))try{if(t!==b.$b.ERROR||(null==r?void 0:r.consoleErrorAsLog))if(t===b.$b.ERROR&&(null==r?void 0:r.consoleErrorAsLog)){const{value:r,type:i,stackFrames:s}=C(n,this.errorSerializer);this.api.pushLog(r?[e.consoleErrorPrefix+r]:n,{level:t,context:{value:null!=r?r:"",type:null!=i?i:"",stackFrames:(null==s?void 0:s.length)?E(s):""}})}else this.api.pushLog(n,{level:t});else{const{value:t,type:r,stackFrames:i}=C(n,this.errorSerializer);if(t&&!r&&!i)return void this.api.pushError(new Error(e.consoleErrorPrefix+t));this.api.pushError(new Error(e.consoleErrorPrefix+t),{type:r,stackFrames:i})}}catch(e){this.logError(e)}})}destroy(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe(),this.subscription=void 0}};P.defaultDisabledLevels=[b.$b.DEBUG,b.$b.TRACE,b.$b.LOG],P.consoleErrorPrefix="console.error: ";const R=[];var L=class extends l.i{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-errors",this.version=d.x}initialize(){this.logDebug("Initializing"),function(e){const t=window.onerror;window.onerror=(...n)=>{try{const{value:t,type:r,stackFrames:i}=O(n),s=n[4];if(t){const n={type:r,stackFrames:i};null!=s&&(n.originalError=s),e.pushError(new Error(t),n)}}finally{null==t||t.apply(window,n)}}}(this.api),function(e){const t=t=>{var n;let r,i,s=t;if(s.reason)s=t.reason;else if(null===(n=t.detail)||void 0===n?void 0:n.reason){var o;s=null===(o=t.detail)||void 0===o?void 0:o.reason}let a=[];(0,w.sO)(s)?(r=`Non-Error promise rejection captured with value: ${String(s)}`,i="UnhandledRejection"):[r,i,a]=k(s),r&&e.pushError(new Error(r),{type:i,stackFrames:a})};window.addEventListener("unhandledrejection",t),R.push(t)}(this.api)}},N=n(55266),D=class extends l.i{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-view",this.version=d.x}sendViewChangedEvent(e){var t;const n=e.view;var r,i,s;n&&n.name!==(null===(t=this.notifiedView)||void 0===t?void 0:t.name)&&(this.api.pushEvent(p.wM,{fromView:null!==(r=null===(i=this.notifiedView)||void 0===i?void 0:i.name)&&void 0!==r?r:N.y,toView:null!==(s=n.name)&&void 0!==s?s:N.y},void 0,{skipDedupe:!0}),this.notifiedView=n)}initialize(){this.metas.addListener(this.sendViewChangedEvent.bind(this))}},M=n(42547);class U{t;o=0;i=[];l(e){if(e.hadRecentInput)return;const t=this.i[0],n=this.i.at(-1);this.o&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.o+=e.value,this.i.push(e)):(this.o=e.value,this.i=[e]),this.t?.(e)}}const j=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},$=e=>{if("loading"===document.readyState)return"loading";const t=j();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},F=e=>{const t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},q=e=>{let t="";try{for(;9!==e?.nodeType;){const n=e,r=n.id?"#"+n.id:[F(n),...Array.from(n.classList??[]).sort()].join(".");if(t.length+r.length>99)return t||r;if(t=t?r+">"+t:r,n.id)break;e=n.parentNode}}catch{}return t},B=new WeakMap;function z(e,t){let n=B.get(t);return n||(n=new WeakMap,B.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}let H=-1;const V=()=>H,K=e=>{addEventListener("pageshow",t=>{t.persisted&&(H=t.timeStamp,e(t))},!0)},J=(e,t,n,r)=>{let i,s;return o=>{t.value>=0&&(o||r)&&(s=t.value-(i??0),(s||void 0===i)&&(i=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},G=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},W=()=>j()?.activationStart??0;let X=-1;const Z=new Set,Q=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,Y=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(const e of Z)e();isFinite(X)||(X="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",Y,!0))}},ee=(e=!1)=>
vendor: 5,294 bytes, line 2
2{if(e&&(X=1/0),X<0){const e=W(),t=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(t=>"hidden"===t.name&&t.startTime>=e)?.startTime;X=t??Q(),addEventListener("visibilitychange",Y,!0),addEventListener("prerenderingchange",Y,!0),K(()=>{setTimeout(()=>{X=Q()})})}return{get firstHiddenTime(){return X},onHidden(e){Z.add(e)}}},te=(e,t=-1,n,r=0,i,s,o)=>{const a=j(),c=a?.navigationId||0;let u="navigate";return n?u=n:V()>=0?u="back-forward-cache":a&&(document.prerendering||W()>0?u="prerender":document.wasDiscarded?u="restore":a.type&&(u=a.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v6-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:u,navigationId:r||c,navigationInteractionId:i,navigationURL:s||a?.name,navigationStartTime:o||0}},ne=(e,t,n={})=>{try{const r=e.filter(e=>PerformanceObserver.supportedEntryTypes.includes(e));if(r.length>0){const e=new PerformanceObserver(e=>{queueMicrotask(()=>{const n=e.getEntries();r.length>1&&n.sort((e,t)=>e.startTime+e.duration-(t.startTime+t.duration)),t(n)})});for(const t of r)e.observe({type:t,buffered:!0,...n});return e}}catch{}},re=e=>globalThis.PerformanceObserver?.supportedEntryTypes?.includes("soft-navigation")&&"function"==typeof globalThis.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint&&e&&e.reportSoftNavs,ie=(e,t)=>{if(e.set(t.navigationId,t),e.size>2){const t=e.keys().next().value;void 0!==t&&e.delete(t)}},se=e=>{let t=!1;return()=>{t||(e(),t=!0)}};class oe{u}const ae=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},ce=[1800,3e3],ue=(e,t={})=>{const n=re(t);ae(()=>{const r=z(t,oe),i=ee();let s,o=te("FCP");const a=ne(["paint"],e=>{for(const t of e)"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<i.firstHiddenTime&&(o.value=Math.max(t.startTime-W(),0),o.entries.push(t),o.navigationId=t.navigationId||o.navigationId,s(!0)))});a&&(s=J(e,o,ce,t.reportAllChanges),K(n=>{o=te("FCP",-1,"back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,V()),s=J(e,o,ce,t.reportAllChanges),G(()=>{o.value=performance.now()-n.timeStamp,s(!0)})})),n&&ne(["soft-navigation"],n=>{n.forEach(n=>{r.u&&n.navigationId&&ie(r.u,n);const i=Math.max((n.presentationTime||n.paintTime||0)-n.startTime,0);o=te("FCP",i,"soft-navigation",n.navigationId,n.interactionId,n.name,n.startTime),s=J(e,o,ce,t.reportAllChanges),s(!0)})},t)})},le=[.1,.25],de=e=>e.find(e=>1===e.node?.nodeType)||e[0];let pe=0,fe=1/0,he=0;const me=e=>{for(const t of e)t.interactionId&&(fe=Math.min(fe,t.interactionId),he=Math.max(he,t.interactionId),pe=he?(he-fe)/7+1:0)};let ge;const ve=()=>ge?pe:performance.interactionCount??0;class be{h=0;v=[];p=new Map;m;M;T(){return ve()-this.h}D(){this.h=ve(),this.v.length=0,this.p.clear()}S(e){const t=this.T(),n=Math.min(this.v.length-1,Math.floor(t/50));return!t||-1!==n||"soft-navigation"!==e&&"back-forward-cache"!==e?this.v[n]:{k:8,id:-1,entries:[]}}l(e){if(this.m?.(e),!e.interactionId)return;const t=this.v.at(-1);let n=this.p.get(e.interactionId);if(n||this.v.length<10||e.duration>t.k){if(n?e.duration>n.k?(n.entries=[e],n.k=e.duration):e.duration===n.k&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],k:e.duration},this.p.set(n.id,n),this.v.push(n)),this.v.sort((e,t)=>t.k-e.k),this.v.length>10){const e=this.v.splice(10);for(const t of e)this.p.delete(t.id)}this.M?.(n)}}}const ye=e=>{const t="requestIdleCallback"in globalThis?1e3:0,n=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if("hidden"===document.visibilityState)e();else{const i=se(e);let s=-1;const o=()=>{r(s),i()};addEventListener("visibilitychange",o,{once:!0,capture:!0}),s=n(()=>{removeEventListener("visibilitychange",o,{capture:!0}),i()},{timeout:t})}},_e=[200,500];class Se{m;u;l(e){this.m?.(e)}}const we=[2500,4e3];let Te=50;const Ee=[];ne(["resource"],e=>{for(const t of e)Ee.push(t),Ee.length>Te&&Ee.shift()});const Ae=[800,1800],xe=e=>{document.prerendering?ae(()=>xe(e)):"complete"!==document.readyState?addEventListener("load",()=>xe(e),!0):setTimeout(e)},ke="load_state",Oe="time_to_first_byte";var Ce=class{constructor(e,t){this.corePushMeasurement=e,this.webVitalConfig=t}initialize(){this.measureCLS(),this.measureFCP(),this.measureINP(),this.measureLCP(),this.measureTTFB()}measureCLS(){var e;((e,t={})=>{const n=z(t=Object.assign({},t),U),r=new WeakMap;n.t=e=>{if(e?.sources?.length){const n=de(e.sources),i=n?.node;if(i){const e=t.generateTarget?.(i)??q(i);r.set(n,e)}}},((e,t={})=>{const n=ee();ue(se(()=>{let r,i=te("CLS",0);const s=z(t,U),o=(n,o,a,c,u)=>{i=te("CLS",0,n,o,a,c,u),s.o=0,r=J(e,i,le,t.reportAllChanges)},a=(e=!1)=>{s.o>i.value&&(i.value=s.o,i.entries=s.i),r(e)},c=e=>{a(!0),o("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime)},u=e=>{for(const t of e)"soft-navigation"!==t.entryType?s.l(t):c(t);a()},l=["layout-shift"];re(t)&&l.push("soft-navigation");const d=ne(l,u);d&&(r=J(e,i,le,t.reportAllChanges),n.onHidden(()=>{u(d.takeRecords()),r(!0)}),K(()=>{o("back-forward-cache",i.navigationId,i.navigationInteractionId,i.navigationURL,V()),G(r)}),setTimeout(r))}))})(t=>{e((e=>{let t={};if(e.entries.length){const n=e.entries.reduce((e,t)=>
2e.value>t.value?e:t);if(n?.sources?.length){const e=de(n.sources);e&&(t={largestShiftTarget:r.get(e),largestShiftTime:n.startTime,largestShiftValue:n.value,largestShiftSource:e,largestShiftEntry:n,loadState:$(n.startTime)})}}return Object.assign(e,{attribution:t})})(t))},t)})(e=>{const{loadState:t,largestShiftValue:n,largestShiftTime:r,largestShiftTarget:i}=e.attribution,s=this.buildInitialValues(e);this.addIfPresent(s,"largest_shift_value",n),this.addIfPresent(s,"largest_shift_time",r);const o=this.buildInitialContext(e);this.addIfPresent(o,ke,t),this.addIfPresent(o,"largest_shift_target",i),this.pushMeasurement(s,o)},{reportAllChanges:null===(e=this.webVitalConfig)||void 0===e?void 0:e.reportAllChanges})}measureFCP(){var e;((e,t={})=>{const n=z(t=Object.assign({},t),oe);re(t)&&(n.u=new Map),ue(t=>{e((e=>{let t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:$(V())};if("soft-navigation"!==e.navigationType){if(e.entries.length){const n=j(),r=e.entries.at(-1);if(n){const i=n.responseStart,s=n.activationStart||0,o=Math.max(0,i-s);t={timeToFirstByte:o,firstByteToFCP:e.value-o,loadState:$(e.entries[0].startTime),navigationEntry:n,fcpEntry:r}}}}else{const r=n.u?.get(e.navigationId);r&&(t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:"complete",navigationEntry:r})}return Object.assign(e,{attribution:t})})(t))},t)})(e=>{const{firstByteToFCP:t,timeToFirstByte:n,loadState:r}=e.attribution,i=this.buildInitialValues(e);this.addIfPresent(i,"first_byte_to_fcp",t),this.addIfPresent(i,Oe,n);const s=this.buildInitialContext(e);this.addIfPresent(s,ke,r),this.pushMeasurement(i,s)},{reportAllChanges:null===(e=this.webVitalConfig)||void 0===e?void 0:e.reportAllChanges})}measureINP(){var e;((e,t={})=>{const n=z(t=Object.assign({},t),be);let r=[],i=[],s=0;const o=new WeakMap,a=new WeakMap;let c=!1;const u=()=>{c||(ye(l),c=!0)},l=()=>{const e=new Set(n.v.map(e=>o.get(e.entries[0]))),t=i.length-10;i=i.filter((n,r)=>r>=t||e.has(n));const a=new Set;for(const e of i){const t=d(e.startTime,e.processingEnd);for(const e of t)a.add(e)}r=r.filter(e=>e.startTime>s||a.has(e)),c=!1};n.m=e=>{const n=e.startTime+e.duration;let r;s=Math.max(s,e.processingEnd);for(let s=i.length-1;s>=0;s--){const o=i[s];if(Math.abs(n-o.renderTime)<=8){r=o,r.startTime=Math.min(e.startTime,r.startTime),r.processingStart=Math.min(e.processingStart,r.processingStart),r.processingEnd=Math.max(e.processingEnd,r.processingEnd),t.includeProcessedEventEntries&&r.entries.push(e);break}}r||(r={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:t.includeProcessedEventEntries?[e]:[]},i.push(r)),e.interactionId&&o.set(e,r),u()},n.M=e=>{if(!a.get(e)){const n=e.entries.find(e=>e.target)?.target;if(n){const r=t.generateTarget?.(n)??q(n);a.set(e,r)}else{const t=e.entries.find(e=>e.targetSelector)?.targetSelector;t&&a.set(e,t)}}};const d=(e,t)=>{const n=[];for(const i of r)if(!(i.startTime+i.duration<e)){if(i.startTime>t)break;n.push(i)}return n};ne(["long-animation-frame"],e=>{r=r.concat(e),u()},t),((e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=ee();ae(()=>{"interactionCount"in performance||ge||(ge=ne(["event"],me,{durationThreshold:0}));let r,i=te("INP");const s=z(t,be),o=(n,o,a,c,u)=>{s.D(),i=te("INP",-1,n,o,a,c,u),r=J(e,i,_e,t.reportAllChanges)},a=()=>{const e=s.S(i.navigationType);e&&e.k!==i.value&&(i.value=e.k,i.entries=e.entries,r())},c=e=>{a(),r(!0),o("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime)},u=(e,t=!1)=>{ye(()=>{for(const t of e)"soft-navigation"!==t.entryType?s.l(t):c(t);a(),t&&r(!0)})},l=["event","first-input"];re(t)&&l.push("soft-navigation");const d=ne(l,u,{...t,durationThreshold:t.durationThreshold??40});r=J(e,i,_e,t.reportAllChanges),d&&(n.onHidden(()=>{u(d.takeRecords(),!0)}),K(()=>{o("back-forward-cache",i.navigationId,i.navigationInteractionId,i.navigationURL,V())}))})})(t=>{e((e=>{if(0===e.entries.length){const t=e.navigationStartTime||0,n={processedEventEntries:[],longAnimationFrameEntries:[],inputDelay:0,processingDuration:0,presentationDelay:e.value,loadState:$(t)};return Object.assign(e,{attribution:n})}const t=e.entries[0],r=o.get(t),i=Math.max(r.processingStart,t.startTime),s=Math.max(t.startTime+t.duration,i),c=Math.min(r.processingEnd,s),u=r.entries.sort((e,t)=>
2e.processingStart-t.processingStart),l=d(t.startTime,c),p=n.p.get(t.interactionId),f={interactionTarget:a.get(p),interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:s,processedEventEntries:u,longAnimationFrameEntries:l,inputDelay:i-t.startTime,processingDuration:c-i,presentationDelay:s-c,loadState:$(t.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(e=>{const t=e.interactionTime,n=e.nextPaintTime;if(!e.longAnimationFrameEntries?.length||!t||!n)return;const r=e.inputDelay,i=e.processingDuration;let s,o,a=0,c=0,u=0,l=0;for(const n of e.longAnimationFrameEntries){c=c+n.startTime+n.duration-n.styleAndLayoutStart;for(const e of n.scripts){const n=e.startTime+e.duration;if(n<t)continue;const u=n-Math.max(t,e.startTime),d=e.duration?u/e.duration*e.forcedStyleAndLayoutDuration:0;a+=u-d,c+=d,u>l&&(o=e.startTime<t+r?"input-delay":e.startTime>=t+r+i?"presentation-delay":"processing-duration",s=e,l=u)}}const d=e.longAnimationFrameEntries.at(-1),p=d?d.startTime+d.duration:0;p>=t+r+i&&(u=n-p),s&&o&&(e.longestScript={entry:s,subpart:o,intersectingDuration:l}),e.totalScriptDuration=a,e.totalStyleAndLayoutDuration=c,e.totalPaintDuration=u,e.totalUnattributedDuration=n-t-a-c-u})(f),Object.assign(e,{attribution:f})})(t))},t)})(e=>{var t;const{interactionTime:n,presentationDelay:r,inputDelay:i,processingDuration:s,nextPaintTime:o,loadState:a,interactionTarget:c,interactionType:u,totalScriptDuration:l,totalStyleAndLayoutDuration:d,totalPaintDuration:p,totalUnattributedDuration:f,longestScript:h}=e.attribution,m=this.buildInitialValues(e);this.addIfPresent(m,"interaction_time",n),this.addIfPresent(m,"presentation_delay",r),this.addIfPresent(m,"input_delay",i),this.addIfPresent(m,"processing_duration",s),this.addIfPresent(m,"next_paint_time",o),this.addNumberIfDefined(m,"total_script_duration",l),this.addNumberIfDefined(m,"total_style_and_layout_duration",d),this.addNumberIfDefined(m,"total_paint_duration",p),this.addNumberIfDefined(m,"total_unattributed_duration",f),this.addNumberIfDefined(m,"longest_script_intersecting_duration",null==h?void 0:h.intersectingDuration);const g=this.buildInitialContext(e);this.addIfPresent(g,ke,a),this.addIfPresent(g,"interaction_target",c),this.addIfPresent(g,"interaction_type",u),this.addIfPresent(g,"longest_script_subpart",null==h?void 0:h.subpart),this.addIfPresent(g,"longest_script_invoker_type",null==h?void 0:h.entry.invokerType),(null===(t=this.webVitalConfig)||void 0===t?void 0:t.trackAttributionSources)&&(this.addIfPresent(g,"longest_script_invoker",null==h?void 0:h.entry.invoker),this.addIfPresent(g,"longest_script_source_url",null==h?void 0:h.entry.sourceURL),this.addIfPresent(g,"longest_script_source_function_name",null==h?void 0:h.entry.sourceFunctionName),this.addIfPresent(g,"longest_script_source_char_position",void 0!==(null==h?void 0:h.entry.sourceCharPosition)?String(h.entry.sourceCharPosition):void 0)),this.pushMeasurement(m,g)},{reportAllChanges:null===(e=this.webVitalConfig)||void 0===e?void 0:e.reportAllChanges})}measureLCP(){var e;((e,t={})=>{null!=(t=Object.assign({},t)).resourceBufferSize&&(Te=t.resourceBufferSize);const n=z(t,Se),r=new WeakMap;re(t)&&(n.u=new Map),n.m=e=>{const n=e.element;if(n){const i=t.generateTarget?.(n)??q(n);r.set(e,i)}else e.id&&r.set(e,`#${e.id}`)},((e,t={})=>{let n=!1;const r=re(t);ae(()=>{let i,s=ee(),o=te("LCP");const a=z(t,Se),c=(r,a,c,u,l)=>{o=te("LCP",-1,r,a,c,u,l),i=J(e,o,we,t.reportAllChanges),n=!1,"soft-navigation"===r&&(s=ee(!0))},u=e=>{a.u&&e.navigationId&&ie(a.u,e),n||i(!0),c("soft-navigation",e.navigationId,e.interactionId,e.name,e.startTime);const t=e.getLargestInteractionContentfulPaint?.();t&&l([t])},l=e=>{t.reportAllChanges||r||(e=e.slice(-1));for(const t of e){if(!t)continue;if("soft-navigation"===t.entryType){u(t);continue}let e=0,n=[],r=t.startTime;if("largest-contentful-paint"===t.entryType)e=Math.max(t.startTime-W(),0),a.l(t),n=[t];else if("interaction-contentful-paint"===t.entryType){const i=t;if(!o.navigationId)continue;if("interactionId"in i&&i.interactionId!=o.navigationInteractionId)continue;r=i.largestContentfulPaint?.renderTime||0,e=Math.max(r-t.startTime,0),i.largestContentfulPaint&&(a.l(i.largestContentfulPaint),n=[i.largestContentfulPaint])}r<s.firstHiddenTime&&(o.value=e,o.entries=n,i())}},d=["largest-contentful-paint"];r&&d.push("interaction-contentful-paint","soft-navigation");const p=ne(d,l);if(p){i=J(e,o,we,t.reportAllChanges);const s=["keydown","click","visibilitychange"],a=e=>{if(e.isTrusted&&!n){const e=o.id;ye(()=>
2{if(!n){if(!r){p.disconnect();for(const e of s)removeEventListener(e,a,{capture:!0})}e===o.id&&(n=!0,i(!0))}})}};for(const e of s)addEventListener(e,a,{capture:!0});K(r=>{c("back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,V()),i=J(e,o,we,t.reportAllChanges),G(()=>{o.value=performance.now()-r.timeStamp,n=!0,i(!0)})})}})})(t=>{e((e=>{let t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){const i=e.entries.at(-1),s=i.url&&(Ee.findLast(e=>e.name===i.url)||performance.getEntriesByType("resource").findLast(e=>e.name===i.url));let o;t.target=r.get(i),t.lcpEntry=i,i.url&&(t.url=i.url),s&&(t.lcpResourceEntry=s);let a=0,c=0;if("soft-navigation"!==e.navigationType?(o=j(),a=o?.activationStart??0,c=o?.responseStart??0):(a=e.navigationStartTime||0,o=n.u?.get(e.navigationId)),o){const n=Math.max(0,c-a),r=Math.max(n,s?(s.requestStart||s.startTime)-a:0),i=Math.min(e.value,Math.max(r,s?s.responseEnd-a:0));t={...t,timeToFirstByte:n,resourceLoadDelay:r-n,resourceLoadDuration:i-r,elementRenderDelay:e.value-i,navigationEntry:o}}}return Object.assign(e,{attribution:t})})(t))},t)})(e=>{var t;const{elementRenderDelay:n,resourceLoadDelay:r,resourceLoadDuration:i,timeToFirstByte:s,target:o,url:a,lcpResourceEntry:c}=e.attribution,u=this.buildInitialValues(e);this.addIfPresent(u,"element_render_delay",n),this.addIfPresent(u,"resource_load_delay",r),this.addIfPresent(u,"resource_load_duration",i),this.addIfPresent(u,Oe,s);const l=this.buildInitialContext(e);this.addIfPresent(l,"element",o),(null===(t=this.webVitalConfig)||void 0===t?void 0:t.trackAttributionSources)&&(this.addIfPresent(l,"resource_url",a),this.addIfPresent(l,"resource_delivery_type",null==c?void 0:c.deliveryType),this.addIfPresent(l,"resource_initiator_type",null==c?void 0:c.initiatorType)),this.pushMeasurement(u,l)},{reportAllChanges:null===(e=this.webVitalConfig)||void 0===e?void 0:e.reportAllChanges})}measureTTFB(){var e;((e,t={})=>{((e,t={})=>{const n=re(t);let r=te("TTFB"),i=J(e,r,Ae,t.reportAllChanges);xe(()=>{const s=j();if(s){const o=s.responseStart;r.value=Math.max(o-W(),0),r.entries=[s],i(!0),K(()=>{r=te("TTFB",0,"back-forward-cache",r.navigationId,r.navigationInteractionId,r.navigationURL,V()),i=J(e,r,Ae,t.reportAllChanges),i(!0)}),n&&ne(["soft-navigation"],n=>{n.forEach(n=>{n.navigationId&&(r=te("TTFB",0,"soft-navigation",n.navigationId,n.interactionId,n.name,n.startTime),r.entries=[n],i=J(e,r,Ae,t.reportAllChanges),i(!0))})},t)}})})(t=>{e((e=>{const t=e.entries[0];let n={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0,navigationEntry:t};if(e.entries.length&&t instanceof PerformanceNavigationTiming){const r=t.activationStart||0,i=Math.max((t.workerStart||t.fetchStart||0)-r,0),s=Math.max(t.domainLookupStart-r,0),o=Math.max(t.connectStart-r,0),a=Math.max(t.connectEnd-r,0);n={waitingDuration:i,cacheDuration:s-i,dnsDuration:o-s,connectionDuration:a-o,requestDuration:e.value-a,navigationEntry:t}}return Object.assign(e,{attribution:n})})(t))},t)})(e=>{const{dnsDuration:t,connectionDuration:n,requestDuration:r,waitingDuration:i,cacheDuration:s}=e.attribution,o=this.buildInitialValues(e);this.addIfPresent(o,"dns_duration",t),this.addIfPresent(o,"connection_duration",n),this.addIfPresent(o,"request_duration",r),this.addIfPresent(o,"waiting_duration",i),this.addIfPresent(o,"cache_duration",s);const a=this.buildInitialContext(e);this.pushMeasurement(o,a)},{reportAllChanges:null===(e=this.webVitalConfig)||void 0===e?void 0:e.reportAllChanges})}buildInitialValues(e){return{[e.name.toLowerCase()]:e.value,delta:e.delta}}buildInitialContext(e){var t;const n=null!==(t=(0,M.Gq)("com.grafana.faro.lastNavigationId",M.Uy.session))&&void 0!==t?t:N.y;return{id:e.id,rating:e.rating,navigation_type:e.navigationType,navigation_entry_id:n}}pushMeasurement(e,t){this.corePushMeasurement({type:"web-vitals",values:e},{context:t})}addIfPresent(e,t,n){n&&(e[t]=n)}addNumberIfDefined(e,t,n){void 0!==n&&(e[t]=n)}},Ie=class extends l.i{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-web-vitals",this.version=d.x}initialize(){this.logDebug("Initializing"),new Ce(this.api.pushMeasurement,this.config.webVitalsInstrumentation).initialize()}};const Pe=/^00-[a-f0-9]{32}-[a-f0-9]{16}-[0-9]{1,2}$/;function Re(e=[]){for(const t of e)if("traceparent"===t.name){if(!Pe.test(t.description))continue;const[,e,n]=t.description.split("-");if(null!=e&&null!=n)return{traceId:e,spanId:n};break}}function Le(e,t={wallNow:Date.now(),monoNow:performance.now()}){const{wallNow:n,monoNow:r}=t;return Math.min(n,n-(r-e))}function Ne(e,t={}
2){for(const[n,r]of Object.entries(t)){const t=e[n];return null!=t&&((0,w.cy)(r)?r.includes(t):t===r)}return!0}function De(e){const{connectEnd:t,connectStart:n,decodedBodySize:r,domainLookupEnd:i,domainLookupStart:s,duration:o,encodedBodySize:a,fetchStart:c,initiatorType:u,name:l,nextHopProtocol:d,redirectEnd:p,redirectStart:f,renderBlockingStatus:h,requestStart:m,responseEnd:g,responseStart:v,responseStatus:b,secureConnectionStart:y,transferSize:_,workerStart:S}=e;return{name:l,httpHost:Me(l),duration:Ue(o),tcpHandshakeTime:Ue(t-n),dnsLookupTime:Ue(i-s),tlsNegotiationTime:Ue(t-y),responseStatus:Ue(b),redirectTime:Ue(p-f),requestTime:Ue(v-m),responseTime:Ue(g-v),fetchTime:Ue(g-c),serviceWorkerTime:Ue(S>0?c-S:0),decodedBodySize:Ue(r),encodedBodySize:Ue(a),cacheHitStatus:function(){let e="fullLoad";return 0===_?r>0&&(e="cache"):null!=b?304===b&&(e="conditionalFetch"):a>0&&_<a&&(e="conditionalFetch"),e}(),renderBlockingStatus:Ue(h),protocol:d,initiatorType:u,visibilityState:document.visibilityState,ttfb:Ue(v-m),transferSize:Ue(_)}}function Me(e){try{return new URL(e).host||N.y}catch(e){return N.y}}function Ue(e){return null==e?N.y:"number"==typeof e?Math.round(e>0?e:0).toString():e.toString()}var je=n(27511);const $e={initiatorType:["xmlhttprequest","fetch"]};var Fe=n(17280);const qe=new g.c;var Be=class extends l.i{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-performance",this.version=d.x}initialize(){var e=this;"PerformanceObserver"in window?function(e){if("complete"===document.readyState)e();else{const t=()=>{"complete"===document.readyState&&(e(),document.removeEventListener("readystatechange",t))};document.addEventListener("readystatechange",t)}}((0,Fe.A)(function*(){const t=e.api.pushEvent,{faroNavigationId:n}=yield function(e){let t;const n=new Promise(e=>{t=e});return new PerformanceObserver(n=>{var r;const[s]=n.getEntries();if(null==s||(0,je.Ki)(s.name))return;const a=s.toJSON();let c=Re(null==a?void 0:a.serverTiming);const u=null!==(r=(0,M.Gq)("com.grafana.faro.lastNavigationId",M.Uy.session))&&void 0!==r?r:N.y,l=(0,o.A)((0,o.A)({},function(e){const{activationStart:t,domComplete:n,domContentLoadedEventEnd:r,domContentLoadedEventStart:i,domInteractive:s,fetchStart:a,loadEventEnd:c,loadEventStart:u,responseStart:l,type:d}=e,p=null!=(null===(f=performance.timing)||void 0===f?void 0:f.domLoading)?performance.timing.domLoading-performance.timeOrigin:null;var f;return(0,o.A)((0,o.A)({},De(e)),{},{pageLoadTime:Ue(n-a),documentParsingTime:Ue(p?s-p:null),domProcessingTime:Ue(n-s),domContentLoadHandlerTime:Ue(r-i),onLoadTime:Ue(c-u),ttfb:Ue(Math.max(l-(null!=t?t:0),0)),type:d})}(a)),{},{faroNavigationId:(0,i.S)(),faroPreviousNavigationId:u});(0,M.SO)("com.grafana.faro.lastNavigationId",l.faroNavigationId,M.Uy.session),e("faro.performance.navigation",l,void 0,{spanContext:c,timestampOverwriteMs:Le(a.startTime)}),t(l)}).observe({type:"navigation",buffered:!0}),n}(t);null!=n&&function(e,t,n){const s=r.P.config.trackResources;new PerformanceObserver(r=>{const a=r.getEntries(),c={wallNow:Date.now(),monoNow:performance.now()};for(const r of a){if((0,je.Ki)(r.name))continue;null==n||n.notify({type:"resource"});const a=r.toJSON();let u=Re(null==a?void 0:a.serverTiming);(null==s&&Ne(a,$e)||s)&&t("faro.performance.resource",(0,o.A)((0,o.A)({},De(a)),{},{faroNavigationId:e,faroResourceId:(0,i.S)()}),void 0,{spanContext:u,timestampOverwriteMs:Le(a.startTime,c)})}}).observe({type:"resource",buffered:!0})}(n,t,qe)})):this.logDebug("performance observer not supported. Disable performance instrumentation.")}},ze=n(18220),He=n(3319);let Ve,Ke;function Je(){return Ve||(Ve=new g.c),Ke||(Ke=new MutationObserver((e,t)=>{Ve.notify({type:m.I1})}),Ke.observe(document,{attributes:!0,childList:!0,subtree:!0,characterData:!0})),Ve}const Ge="fetch",We="xhr";let Xe,Ze,Qe,Ye,et=!1;function tt(){if(Xe)return Xe;function e(e){Xe.notify({type:m.HU,request:e})}function t(e){Xe.notify({type:m.IU,request:e})}return Xe=new g.c,et||(function({onRequestEnd:e,onRequestStart:t}){Qe||(Qe=window.fetch),window.fetch=function(){var n,r;const s=null!==(n=(0,je.iM)(arguments[0]))&&void 0!==n?n:"",o=(0,je.Ki)(s),a=(null!==(r=arguments[1])&&void 0!==r?r:{}).method,c=(0,i.S)();return o||t({url:s,method:a,requestId:c,apiType:Ge}),Qe.apply(this,arguments).then(t=>(o||e({url:s,method:a,requestId:c,apiType:Ge}),t)).catch(t=>{throw o||e({url:s,method:a,requestId:c,apiType:Ge}),t})}}({onRequestStart:e,onRequestEnd:t}),function({onRequestStart:e,onRequestEnd:t}){Ze||(Ze=XMLHttpRequest.prototype.open),XMLHttpRequest.prototype.open=function(){const n=arguments[1],r=(0,je.
2Ki)(n),s=arguments[0],o=(0,i.S)();this.addEventListener("loadstart",function(){r||e({url:n,method:s,requestId:o,apiType:We})}),this.addEventListener("load",function(){r||t({url:n,method:s,requestId:o,apiType:We})}),this.addEventListener("error",function(){r||t({url:n,method:s,requestId:o,apiType:We})}),this.addEventListener("abort",function(){r||t({url:n,method:s,requestId:o,apiType:We})}),Ze.apply(this,arguments)}}({onRequestStart:e,onRequestEnd:t}),et=!0),Xe}let nt,rt=!1;var it=n(50947),st=class{constructor(e,t,n=100){this.userAction=e,this.logDebug=t,this.initialActivityTimeout=n,this.http=tt(),this.dom=Je(),this.perf=(Ye||(Ye=new g.c),rt||(nt=qe.subscribe(e=>{"resource"===e.type&&Ye.notify({type:m.vb})}),rt=!0),Ye),this.isValid=!1,this.runningRequests=new Map}attach(){this.allMonitorsSub=(new g.c).merge(this.http,this.dom,this.perf).takeWhile(()=>[it.j.Started,it.j.Halted].includes(this.userAction.getState())).filter(e=>!!(this.userAction.getState()!==it.j.Halted||(0,He.YS)(e)&&this.runningRequests.has(e.request.requestId))).subscribe(e=>{(0,He.F2)(e)&&this.runningRequests.set(e.request.requestId,e.request),(0,He.YS)(e)&&this.runningRequests.delete(e.request.requestId),(0,He.YS)(e)?this.userAction.getState()===it.j.Halted&&0===this.runningRequests.size&&this.endAction():(this.isValid||(this.isValid=!0,this.clearTimer(this.startupTid)),this.scheduleFollowUp())}),this.stateSub=this.userAction.filter(e=>[it.j.Ended,it.j.Cancelled].includes(e)).first().subscribe(()=>this.cleanup()),this.startupTid=(0,He.kk)(this.startupTid,()=>{this.logDebug("User action not sent; no DOM, resource, or HTTP activity:",this.userAction.name),this.cancelAction()},this.initialActivityTimeout)}scheduleFollowUp(){this.clearTimer(this.followUpTid),this.followUpTid=window.setTimeout(()=>{this.userAction.getState()===it.j.Started&&this.runningRequests.size>0?this.haltAction():this.isValid?this.endAction():this.cancelAction()},100)}haltAction(){this.userAction.getState()===it.j.Started&&(this.userAction.halt(),this.startHaltTimeout())}startHaltTimeout(){this.clearTimer(this.haltTid),this.haltTid=(0,He.kk)(this.haltTid,()=>{this.userAction.getState()===it.j.Halted&&this.endAction()},1e4)}endAction(){this.userAction.end(),this.cleanup()}cancelAction(){this.userAction.cancel(),this.cleanup()}cleanup(){var e,t;this.clearTimer(this.startupTid),this.clearTimer(this.followUpTid),this.clearTimer(this.haltTid),null===(e=this.allMonitorsSub)||void 0===e||e.unsubscribe(),null===(t=this.stateSub)||void 0===t||t.unsubscribe(),this.allMonitorsSub=void 0,this.stateSub=void 0,this.runningRequests.clear()}clearTimer(e){void 0!==e&&window.clearTimeout(e)}},ot=n(75736);var at=n(94911),ct=class extends l.i{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-user-action",this.version=d.x}initialize(){const{processUserEvent:e,processUserActionStarted:t}=function(e,t=ot.l){var n;const{api:r,config:i,internalLogger:s}=e,o=(0,He.iK)(null===(n=i.userActionsInstrumentation)||void 0===n?void 0:n.initialActivityTimeout,100,t);return{processUserEvent:function(e){var t,n;const s=e.target,o=null!==(t=null===(n=i.userActionsInstrumentation)||void 0===n?void 0:n.dataAttributeName)&&void 0!==t?t:ze.Ij,a=function(e,t){const n=(0,He.Nd)(t),r=e.dataset;for(const e in r)if(e===n)return r[e]}(s,o);if(!a)return;const c=function(e,t){const n=e.getAttribute((0,He.O1)(t));return null===n?void 0:Number(n)}(s,o);r.startUserAction(a,{},{triggerName:e.type,initialActivityTimeout:c})},processUserActionStarted:function(e,n){const r=e,i=(0,He.iK)(n,o,t);new st(r,s.debug,i).attach()}}}(r.P,e=>this.logWarn(e));this._processUserEvent=e,this._processKeydown=t=>{[" ","Enter"].includes(t.key)&&e(t)},window.addEventListener("pointerdown",this._processUserEvent),window.addEventListener("keydown",this._processKeydown),this._userActionSub=at.Gx.subscribe(({type:e,userAction:n,initialActivityTimeout:r})=>{"user_action_start"===e&&t(n,r)})}destroy(){var e;this._processUserEvent&&window.removeEventListener("pointerdown",this._processUserEvent),this._processKeydown&&window.removeEventListener("keydown",this._processKeydown),null===(e=this._userActionSub)||void 0===e||e.unsubscribe()}},ut=class extends l.i{constructor(){super(),this.name="@grafana/faro-web-sdk:instrumentation-csp",this.version=d.x,this.boundSecuritypolicyviolationHandler=this.securitypolicyviolationHandler.bind(this)}initialize(){document.addEventListener("securitypolicyviolation",this.boundSecuritypolicyviolationHandler)}destroy(){document.removeEventListener("securitypolicyviolation",this.boundSecuritypolicyviolationHandler)}securitypolicyviolationHandler(e){const t={blockedURI:e.blockedURI,columnNumber:e.columnNumber,dis
2position:e.disposition,documentURI:e.documentURI,effectiveDirective:e.effectiveDirective,lineNumber:e.lineNumber,originalPolicy:e.originalPolicy,referrer:e.referrer,sample:e.sample,sourceFile:e.sourceFile,statusCode:e.statusCode,violatedDirective:e.violatedDirective};this.api.pushEvent("securitypolicyviolation",(0,T.Ti)(t))}},lt=class extends g.c{constructor(e,t){var n,r,i,s;super(),this._tracking=!1,this.eventsObservable=e,this._options={inactivityMs:null!==(n=null==t?void 0:t.inactivityMs)&&void 0!==n?n:100,drainTimeoutMs:null!==(r=null==t?void 0:t.drainTimeoutMs)&&void 0!==r?r:1e4,isOperationStart:null!==(i=null==t?void 0:t.isOperationStart)&&void 0!==i?i:()=>{},isOperationEnd:null!==(s=null==t?void 0:t.isOperationEnd)&&void 0!==s?s:()=>{}},this._initialize()}_initialize(){this.eventsObservable.filter(()=>this._tracking).subscribe(e=>{var t;this._lastEventTime=(0,f.AU)(),null===(t=this._currentEvents)||void 0===t||t.push(e);const n=this._options.isOperationStart(e);var r;n&&(null===(r=this._activeOperations)||void 0===r||r.set(n,!0));const i=this._options.isOperationEnd(e);var s;i&&(null===(s=this._activeOperations)||void 0===s||s.delete(i)),this._scheduleInactivityCheck()})}startTracking(){this._tracking||(this._tracking=!0,this._startTime=(0,f.AU)(),this._lastEventTime=this._startTime,this.notify({message:"tracking-started"}),this._currentEvents=[],this._activeOperations=new Map,this._scheduleInactivityCheck())}stopTracking(){let e;this._tracking=!1,this._clearTimer(this._inactivityTid),this._clearTimer(this._drainTid),e=this.hasActiveOperations()?(0,f.AU)()-this._startTime:this._lastEventTime?this._lastEventTime-this._startTime:0,this.notify({message:"tracking-ended",events:this._currentEvents,duration:e})}
2_scheduleInactivityCheck(){this._inactivityTid=dt(this._inactivityTid,()=>{this.hasActiveOperations()?this._startDrainTimeout():this.stopTracking()},this._options.inactivityMs)}_startDrainTimeout(){this._drainTid=dt(this._drainTid,()=>{this.stopTracking()},this._options.drainTimeoutMs)}hasActiveOperations(){return!!this._activeOperations&&this._activeOperations.size>0}_clearTimer(e){e&&clearTimeout(e)}};function dt(e,t,n){return e&&clearTimeout(e),setTimeout(()=>{t()},n)}let pt;const ft=new Set,ht=new Map;let mt,gt,vt,bt,yt,_t,St,wt,Tt=!1;var Et=class extends l.i{constructor(...e){super(...e),this.name="@grafana/faro-web-sdk:instrumentation-navigation",this.version=d.x}initialize(){const e=tt(),t=Je(),n=function(){function e(e,t){const n=null!=t?t:location.href;n!==gt&&(mt.notify({type:"url-change",from:gt,to:n,trigger:e}),gt=n)}if(mt||(mt=new g.c,gt=location.href),!Tt)if("navigation"in window&&"NavigateEvent"in window){St=t=>{try{const n=null==t?void 0:t.destination;(null==n?void 0:n.sameDocument)&&"string"==typeof n.url&&e("navigate",n.url)}catch(e){}},window.navigation.addEventListener("navigate",St);const t=window.NavigateEvent;t&&t.prototype&&"function"==typeof t.prototype.intercept&&(wt||(wt=t.prototype.intercept),t.prototype.intercept=function(t){try{const t=!!(null==this?void 0:this.canIntercept),n=null==this?void 0:this.destination;t&&n&&!1===n.sameDocument&&"string"==typeof n.url&&e("navigate-intercept",n.url)}catch(e){}return wt.call(this,t)}),Tt=!0}else vt||(vt=window.history.pushState),window.history.pushState=function(...t){const n=vt.apply(window.history,t);return e("pushState"),n},bt||(bt=window.history.replaceState),window.history.replaceState=function(...t){const n=bt.apply(window.history,t);return e("replaceState"),n},yt=()=>e("popstate"),_t=()=>e("hashchange"),window.addEventListener("popstate",yt),window.addEventListener("hashchange",_t),Tt=!0;return mt}(),i=(s=["pointerdown","keydown"],pt||(pt=new g.c),s.forEach(e=>{if(!ft.has(e)){const t=()=>{pt.notify({type:"interaction",name:e})};window.addEventListener(e,t),ft.add(e),ht.set(e,t)}}),pt);var s;const o=new lt((new g.c).merge(e,t,n),{inactivityMs:100,drainTimeoutMs:1e4,isOperationStart:e=>function(e){return e.type===m.HU}(e)?e.request.requestId:void 0,isOperationEnd:e=>function(e){return e.type===m.IU}(e)?e.request.requestId:void 0});o.filter(e=>"tracking-ended"===e.message).subscribe(e=>{var t,n;if((null===(t=e.events)||void 0===t?void 0:t.some(e=>"url-change"===e.type))&&(null===(n=e.events)||void 0===n?void 0:n.some(e=>"dom-mutation"===e.type))){var i;const t=null===(i=e.events)||void 0===i?void 0:i.find(e=>"url-change"===e.type);r.P.api.pushEvent("faro.navigation",{fromUrl:null==t?void 0:t.from,toUrl:null==t?void 0:t.to,sameDocument:String(!0),duration:e.duration})}}),i.subscribe(()=>{o.startTracking()})}};function At(e={}){const t=[new ct,new L,new Ie,new h,new D,new Et];return!1!==e.enablePerformanceInstrumentation&&t.unshift(new Be),!1!==e.enableContentSecurityPolicyInstrumentation&&t.push(new ut),!1!==e.captureConsole&&t.push(new P),t}},55266:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});const r="unknown"},57115:(e,t,n)=>{"use strict";n.d(t,{$b:()=>r,HT:()=>i});let r=function(e){return e.TRACE="trace",e.DEBUG="debug",e.INFO="info",e.LOG="log",e.WARN="warn",e.ERROR="error",e}({});const i=["trace","debug","info","log","warn","error"]},57277:(e,t,n)=>{"use strict";n.d(t,{B:()=>c,L:()=>a});var r=n(32535);class i{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){const t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(e,t){const n=new i(this._entries);return n._entries.set(e,t),n}removeEntry(e){const t=new i(this._entries);return t._entries.delete(e),t}removeEntries(...e){const t=new i(this._entries);for(const n of e)t._entries.delete(n);return t}clear(){return new i}}const s=Symbol("BaggageEntryMetadata"),o=r.K.instance();function a(e={}){return new i(new Map(Object.entries(e)))}function c(e){return"string"!=typeof e&&(o.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:s,toString:()=>e}}}
2,58843:(e,t,n)=>{"use strict";n.d(t,{p:()=>Pe});const r="browser";var i=n(18047);let s,o;function a(){const e="undefined"!=typeof navigator?navigator.userAgent:"";return s===e&&o||(o=new i.UAParser(e).getResult(),s=e),o}var c=n(55266);const u=()=>{const{browser:e,os:t,ua:n}=a(),{name:r,version:i}=e,{name:s,version:o}=t,u=navigator.language,l=n.includes("Mobi"),d=function(){if(r&&i)return"userAgentData"in navigator&&navigator.userAgentData?navigator.userAgentData.brands:void 0}();return{browser:{name:null!=r?r:c.y,version:null!=i?i:c.y,os:`${null!=s?s:c.y} ${null!=o?o:c.y}`,userAgent:null!=n?n:c.y,language:null!=u?u:c.y,mobile:l,brands:null!=d?d:c.y,viewportWidth:`${window.innerWidth}`,viewportHeight:`${window.innerHeight}`}}},l=()=>{const{name:e,version:t}=a().os;if(!e&&!t)return{};const n={};return e&&(n.name=e),t&&(n.version=t),{os:n}};var d=n(99408);const p=()=>({sdk:{name:"faro-web",version:d.x}});var f=n(26916),h=n(92807),m=n(83327);function g(e){return{frames:(0,m.D)(e)}}var v=n(18220),b=n(3319),y=n(55056);const _=()=>{const e=window.k6;return{k6:(0,h.A)({isK6Browser:!0},(null==e?void 0:e.testRunId)&&{testRunId:null==e?void 0:e.testRunId})}};var S=n(27840);let w,T;function E({generatePageId:e,initialPageMeta:t}={}){return()=>{const n=location.href;return(0,S.Tn)(e)&&w!==n&&(w=n,T=e(location)),{page:(0,h.A)((0,h.A)({url:n},T?{id:T}:{}),t)}}}function A(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var x=n(39745),k=n(11312),O=n(17280),C=n(72013),I=class extends C.H{isBatched(){return!1}getIgnoreUrls(){return[]}},P=n(85728),R=n(19063);function L(e,t){var n,r;if(void 0===t)return e;if(void 0===e)return{resourceSpans:t};const i=null===(n=e.resourceSpans)||void 0===n?void 0:n[0];if(void 0===i)return e;const s=(null==i?void 0:i.scopeSpans)||[],o=(null==t||null===(r=t[0])||void 0===r?void 0:r.scopeSpans)||[];return(0,R.A)((0,R.A)({},e),{},{resourceSpans:[(0,R.A)((0,R.A)({},i),{},{scopeSpans:[...s,...o]})]})}function N(e){let t={meta:{}};return void 0!==e[0]&&(t.meta=e[0].meta),e.forEach(e=>{switch(e.type){case"log":case"event":case"exception":case"measurement":{const n=P.J[e.type],r=t[n];t=(0,R.A)((0,R.A)({},t),{},{[n]:void 0===r?[e.payload]:[...r,e.payload]});break}case"trace":t=(0,R.A)((0,R.A)({},t),{},{traces:L(t.traces,e.payload.resourceSpans)})}}),t}var D=n(75736);const M=["headers"],U=["keepalive"];let j=0,$=0;var F=class extends I{constructor(e){var t,n,r,i,s;super(),this.options=e,this.name="@grafana/faro-web-sdk:transport-fetch",this.version=d.x,this.disabledUntil=new Date(0),this.rateLimitBackoffMs=null!==(t=e.defaultRateLimitBackoffMs)&&void 0!==t?t:5e3,this.getNow=null!==(n=e.getNow)&&void 0!==n?n:()=>Date.now();const o=null!==(r=e.requestCompression)&&void 0!==r&&r;o&&"undefined"==typeof CompressionStream?(this.compressionEnabled=!1,this.logWarn("requestCompression is enabled but CompressionStream is not available. Falling back to uncompressed.")):this.compressionEnabled=o,this.promiseBuffer=function(e){const{size:t,concurrency:n}=e,r=[];let i=0;const s=()=>
2{if(i<n&&r.length){const{producer:e,resolve:t,reject:n}=r.shift();i++,e().then(e=>{i--,s(),t(e)},e=>{i--,s(),n(e)})}};return{add:e=>{if(r.length+i>=t)throw new Error("Task buffer full");return new Promise((t,n)=>{r.push({producer:e,resolve:t,reject:n}),s()})}}}({size:null!==(i=e.bufferSize)&&void 0!==i?i:30,concurrency:null!==(s=e.concurrency)&&void 0!==s?s:5})}send(e){var t=this;return(0,O.A)(function*(){try{if(t.disabledUntil>new Date(t.getNow()))return t.logWarn(`Dropping transport item due to too many requests. Backoff until ${t.disabledUntil}`),Promise.resolve();yield t.promiseBuffer.add((0,O.A)(function*(){const n=JSON.stringify(N(e)),{url:r,requestOptions:i,apiKey:s}=t.options,o=null!=i?i:{},{headers:a={}}=o,c=A(o,M),{keepalive:u}=c,l=A(c,U);let d;const p=t.metas.value.session;null!=p&&(d=p.id);const f={};for(const[e,t]of Object.entries(a))f[e]="function"==typeof t?yield Promise.resolve(t()):t;let m=n,g=function(e){return"undefined"==typeof TextEncoder?e.length:(new TextEncoder).encode(e).byteLength}(n);const v={};t.compressionEnabled&&(m=yield t.compress(n),g=m.size,v["Content-Encoding"]="gzip");const b=(0,h.A)({method:"POST",headers:(0,h.A)((0,h.A)((0,h.A)((0,h.A)({"Content-Type":"application/json"},v),f),s?{"x-api-key":s}:{}),d?{"x-faro-session-id":d}:{}),body:m},null!=l?l:{});return t.fetchWithKeepaliveRetry(r,b,g,u).catch(e=>{t.logError("Failed sending payload to the receiver\n",JSON.parse(n),e)})}))}catch(e){t.logError(e)}})()}getIgnoreUrls(){var e;return[this.options.url].concat(null!==(e=this.config.ignoreUrls)&&void 0!==e?e:[])}isBatched(){return!0}getRetryAfterDate(e){const t=this.getNow(),n=e.headers.get("Retry-After");if(n){const e=Number(n);if(!isNaN(e))return new Date(1e3*e+t);const r=Date.parse(n);if(!isNaN(r))return new Date(r)}return new Date(t+this.rateLimitBackoffMs)}reserveKeepalive(e,t){if(!1===t)return{keepalive:!1,release:D.l};if(e>6e4||j+e>6e4||$>=9)return this.logDebug("Disabling keepalive because the pending keepalive request budget would be exceeded."),{keepalive:!1,release:D.l};j+=e,$++;let n=!1;return{keepalive:!0,release:()=>{n||(n=!0,j=Math.max(0,j-e),$=Math.max(0,$-1))}}}fetchWithKeepaliveRetry(e,t,n,r){var i=this;return(0,O.A)(function*(){const s=i.reserveKeepalive(n,r);try{const n=yield fetch(e,(0,h.A)((0,h.A)({},t),{},{keepalive:s.keepalive}));return i.handleResponse(n)}catch(n){if(s.keepalive&&i.isFetchNetworkError(n)){i.logDebug("Retrying failed keepalive request with keepalive disabled.");const n=yield fetch(e,(0,h.A)((0,h.A)({},t),{},{keepalive:!1}));return i.handleResponse(n)}throw n}finally{s.release()}})()}handleResponse(e){var t=this;return(0,O.A)(function*(){return 202===e.status&&"invalid"===e.headers.get("X-Faro-Session-Status")&&t.extendFaroSession(t.config,t.logDebug),429===e.status&&(t.disabledUntil=t.getRetryAfterDate(e),t.logWarn(`Too many requests, backing off until ${t.disabledUntil}`)),e.text().catch(D.l),e})()}isFetchNetworkError(e){return e instanceof TypeError}compress(e){return(0,O.A)(function*(){const t=new ReadableStream({start(t){t.enqueue((new TextEncoder).encode(e)),t.close()}}).pipeThrough(new CompressionStream("gzip")).getReader(),n=[];for(;;){const{done:e,value:r}=yield t.read();if(e)break;n.push(r)}return new Blob(n)})()}extendFaroSession(e,t){const n="Session expired",r=e.sessionTracking;if(null==r?void 0:r.enabled){const{fetchUserSession:e,storeUserSession:i}=(0,k.R)(r);(0,x.vP)({fetchUserSession:e,storeUserSession:i})({forceSessionExtend:!0}),t(`${n} created new session.`)}else t(`${n}.`)}};const q=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), ([0-9]{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ([0-9]{4}) ([0-9]{2}):([0-9]{2}):([0-9]{2}) GMT$/,B=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), ([0-9]{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2}) GMT$/,z=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?:(?:([0-9]{2}))|(?: ([0-9]))) ([0-9]{2}):([0-9]{2}):([0-9]{2}) ([0-9]{4})$/,H=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],V=["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"],K=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function J({weekday:e,day:t,month:n,year:r,hour:i,minute:s,second:o}){if(r<1900||t<1||i>23||s>59||o>60)return;const a=60===o,c=new Date(0);return c.setUTCFullYear(r,n,t),c.setUTCHours(i,s,a?59:o,0),c.getUTCDay()===e&&c.getUTCDate()===t&&c.getUTCMonth()===n&&c.getUTCFullYear()===r&&c.getUTCHours()===i&&c.getUTCMinutes()===s&&c.getUTCSeconds()===(a?59:o)?c.getTime()+(a?1e3:0):void 0}var G=class{constructor(e){this.options=e,this.admitted=0,this.inProgress=0,this.sequence=0,this.nextSendAt=0,this.attemptQueue=[],this.waiting=[],this.unloading=!1}reserve(){var e=this;if(this.admitted>=this.options.bufferSize)return;this.admitted++;const t=this.sequence++;let n=!1;return{deliver:(r=(0,O.A)(function*(n){const r=e.options.getNow();let i,s=0;for(;;){var o,a,c;const u=e.options.retry.maxAttempts-s,l=yield e.runAttempt(()=>n(u,e.unloading),s>0);if(s+=l.attemptsMade,"success"===l.kind)return{kind:"success",attempts:s,elapsedTimeMs:e.options.getNow()-r};if(i=l.failure,"terminal"===l.kind||e.unloading)return{kind:"terminal",attempts:s,elapsedTimeMs:e.options.getNow()-r,failure:i};if(s>=e.options.retry.maxAttempts)return{kind:"terminal",attempts:s,elapsedTimeMs:e.options.getNow()-r,failure:i,reason:"retries-exhausted"};if(null!=l.retryAfterMs&&l.retryAfterMs>e.options.retry.maxBackoffMs)return{kind:"terminal",attempts:s,elapsedTimeMs:e.options.getNow()-r,failure:i,reason:"retry-after-too-long"};const d=Math.min(null!==(o=l.retryAfterMs)&&void 0!==o?o:e.options.retry.initialBackoffMs*Math.pow(e.options.retry.backoffMultiplier,s-1),e.options.retry.maxBackoffMs);if(null===(a=(c=e.options).onRetry)||void 0===a||a.call(c,d,s+1),yield e.waitForTurn(t,d)){const t=e.options.retry.maxAttempts-s,i=yield e.runAttempt(()=>n(t,!0));return s+=i.attemptsMade,{kind:"success"===i.kind?"success":"terminal",attempts:s,elapsedTimeMs:e.options.getNow()-r,failure:"success"===i.kind?void 0:i.failure}}}}),function(e){return r.apply(this,arguments)}),release:()=>{n||(n=!0,this.admitted--)}};var r}flush(){this.unloading=!0,this.nextSendAt=0;const e=this.waiting.splice(0);null!=this.redeliveryTimer&&(clearTimeout(this.redeliveryTimer),this.redeliveryTimer=void 0),null!=this.waitingTimer&&(clearTimeout(this.waitingTimer),this.waitingTimer=void 0);for(const t of e)t.resolve(!0);this.runNextAttempt()}resume(){this.unloading=!1}runAttempt(e,t=!1){return new Promise((n,r)=>{this.attemptQueue.push({run:()=>{this.inProgress++;const t=()=>{this.inProgress--,this.runNextAttempt()};e().then(e=>{t(),n(e)},e=>{t(),r(e)})},isRedelivery:t}),this.runNextAttempt()})}runNextAttempt(){for(null!=this.redeliveryTimer&&(clearTimeout(this.redeliveryTimer),this.redeliveryTimer=void 0);this.inProgress<this.options.concurrency&&this.attemptQueue.length>0;){const e=this.options.getNow(),t=this.attemptQueue.findIndex(({isRedelivery:t})=>this.unloading||!t||e>=this.nextSendAt);if(t<0)return void(this.redeliveryTimer=setTimeout(()=>{this.redeliveryTimer=void 0,this.runNextAttempt()},Math.max(0,this.nextSendAt-e)));const[n]=this.attemptQueue.splice(t,1);n.isRedelivery&&!this.unloading&&(this.nextSendAt=e+1),n.run()}}waitForTurn(e,t){const n=Math.min(t*(1+.2*this.options.getRandom()),this.options.retry.maxBackoffMs);return new Promise(t=>{this.waiting.push({sequence:e,readyAt:this.options.getNow()+n,resolve:t}),this.waiting.sort((e,t)=>e.readyAt===t.readyAt?e.sequence-t.sequence:e.readyAt-t.readyAt),null!=this.waitingTimer&&(clearTimeout(this.waitingTimer),this.waitingTimer=void 0),this.scheduleNext()})}scheduleNext(){if(null!=this.waitingTimer||0===this.waiting.length)return;const e=this.waiting[0],t=e.readyAt;this.waitingTimer=setTimeout(()=>{this.waitingTimer=void 0;const t=this.waiting.indexOf(e);t>=0&&this.waiting.splice(t,1),e.resolve(!1),this.scheduleNext()},Math.max(0,t-this.options.getNow()))}},W=n(45877);const X=["headers"],Z=["keepalive","signal"],Q=new Set([408,425,429,500,502,503,504]),Y=new Set([429,503]);let ee=0,te=0;var ne=class extends Error{},re=class extends I{constructor(e){var t,n,r,i,s,o,a,c,u,l,p,f,h,m;super(),this.options=e,this.name="@grafana/faro-web-sdk:transport-fetch-v2",this.version=d.x,this.getNow=null!==(t=e.getNow)&&void 0!==t?t:Date.now,this.requestTimeoutMs=null!==(n=e.requestTimeoutMs)&&void 0!==n?n:1e4,this.compressionEnabled=null!==(r=e.requestCompression)&&void 0!==r&&r&&"undefined"!=typeof CompressionStream,e.requestCompression&&!this.compressionEnabled&&this.logWarn("requestCompression is enabled but CompressionStream is not available. Falling back to uncompressed."),this.requestTimeoutMs>0&&"undefined"==typeof AbortController&&this.logWarn("AbortController is unavailable. Requests will be sent without the configured timeout."),this.deliveryQueue=new G({bufferSize:null!==(i=e.bufferSize)&&void 0!==i?i:30,concurrency:null!==(s=e.concurrency)&&void 0!==s?s:5,retry:{maxAttempts:null!==(o=null===(a=e.retry)||void 0===a?void 0:a.maxAttempts)&&void 0!==o?o:3,initialBackoffMs:null!==(c=null===(u=e.retry)||void 0===u?void 0:u.initialBackoffMs)&&void 0!==c?c:1e3,maxBackoffMs:null!==(l=null===(p=e.retry)||void 0===p?void 0:p.maxBackoffMs)&&void 0!==l?l:3e4,backoffMultiplier:null!==(f=null===(h=e.retry)||void 0===h?void 0:h.backoffMultiplier)&&void 0!==f?f:2},getNow:this.getNow,getRandom:null!==(m=e.getRandom)&&void 0!==m?m:Math.random,onRetry:(e,t)=>{this.logDebug(`Retrying failed request after ${e}ms. Attempt ${t}.`)}}),"undefined"!=typeof window&&(window.addEventListener("pagehide",()=>this.deliveryQueue.flush()),window.addEventListener("pageshow",e=>{e.persisted&&this.deliveryQueue.resume()}))}send(e){var t=this;return(0,O.A)(function*(){const n=t.deliveryQueue.reserve();if(n)try{const r=yield t.prepareRequest(e),i=yield n.deliver((e,n
2)=>t.performAttempt(r,e,n));"terminal"===i.kind&&t.logError("retries-exhausted"===i.reason?"Delivery retries exhausted":"Permanent delivery failure",(0,h.A)((0,h.A)({},i.failure),{},{attempts:i.attempts,elapsedTimeMs:i.elapsedTimeMs}))}catch(e){t.logError("Permanent delivery failure",{error:e,attempts:0,elapsedTimeMs:0})}finally{n.release()}else t.logError("Permanent delivery failure",{error:"Reliable delivery queue is full",attempts:0,elapsedTimeMs:0})})()}getIgnoreUrls(){var e;return[this.options.url].concat(null!==(e=this.config.ignoreUrls)&&void 0!==e?e:[])}isBatched(){return!0}prepareRequest(e){var t=this;return(0,O.A)(function*(){var n,r;const i=JSON.stringify(N(e)),s=null!==(n=t.options.requestOptions)&&void 0!==n?n:{},{headers:o={}}=s,a=A(s,X),{keepalive:c,signal:u}=a,l=A(a,Z),d={};for(const[e,t]of Object.entries(o))d[e]="function"==typeof t?yield t():t;let p=i,f=function(e){return"undefined"==typeof TextEncoder?e.length:(new TextEncoder).encode(e).byteLength}(i);const m={};t.compressionEnabled&&(p=yield t.compress(i),f=p.size,m["Content-Encoding"]="gzip");const g=null===(r=t.metas.value.session)||void 0===r?void 0:r.id;return{bodySize:f,requestInit:(0,h.A)({method:"POST",headers:(0,h.A)((0,h.A)((0,h.A)((0,h.A)((0,h.A)({"Content-Type":"application/json"},m),d),t.options.apiKey?{"x-api-key":t.options.apiKey}:{}),g?{"x-faro-session-id":g}:{}),{},{"Idempotency-Key":(0,W.S)(20)}),body:p},l)}})()}performAttempt(e,t,n){var r=this;return(0,O.A)(function*(){var i;const s=null===(i=r.options.requestOptions)||void 0===i?void 0:i.signal;if(null==s?void 0:s.aborted)return{kind:"terminal",failure:{error:s.reason},attemptsMade:0};let o=0;try{var a;const i=yield r.fetchWithKeepaliveFallback(e.requestInit,e.bodySize,!!n||(null===(a=r.options.requestOptions)||void 0===a?void 0:a.keepalive),t,()=>o++);if(r.handleResponse(i),i.status>=200&&i.status<300)return{kind:"success",attemptsMade:o};const s={status:i.status};return!Q.has(i.status)||n?{kind:"terminal",failure:s,attemptsMade:o}:{kind:"retry",failure:s,attemptsMade:o,retryAfterMs:Y.has(i.status)?r.getRetryAfterDelayMs(i):void 0}}catch(e){const t={error:e};return(null==s?void 0:s.aborted)||!r.isFetchNetworkError(e)||n?{kind:"terminal",failure:t,attemptsMade:o}:{kind:"retry",failure:t,attemptsMade:o}}})()}fetchWithKeepaliveFallback(e,t,n,r,i){var s=this;return(0,O.A)(function*(){const o=s.getNow(),a=s.reserveKeepalive(t,n);try{return yield s.fetchWithTimeout((0,h.A)((0,h.A)({},e),{},{keepalive:a.keepalive}),s.requestTimeoutMs,i)}catch(t){var c;if(a.keepalive&&r>1&&s.isFetchNetworkError(t)&&!(t instanceof ne)&&!(null===(c=s.options.requestOptions)||void 0===c||null===(c=c.signal)||void 0===c?void 0:c.aborted)){s.logDebug("Retrying failed keepalive request with keepalive disabled.");const t=s.requestTimeoutMs-(s.getNow()-o);return s.fetchWithTimeout((0,h.A)((0,h.A)({},e),{},{keepalive:!1}),t,i)}throw t}finally{a.release()}})()}fetchWithTimeout(e,t,n){var r=this;return(0,O.A)(function*(){var i;const s=null===(i=r.options.requestOptions)||void 0===i?void 0:i.signal;if(r.requestTimeoutMs<=0||"undefined"==typeof AbortController)return n(),fetch(r.options.url,(0,h.A)((0,h.A)({},e),{},{signal:s}));if(t<=0)throw new ne("Request timed out");const o=new AbortController,a=()=>o.abort(null==s?void 0:s.reason);null==s||s.addEventListener("abort",a,{once:!0});let c=!1;const u=setTimeout(()=>{c=!0,o.abort()},t);try{return n(),yield fetch(r.options.url,(0,h.A)((0,h.A)({},e),{},{signal:o.signal}))}catch(e){if(c&&!(null==s?void 0:s.aborted))throw new ne("Request timed out");throw e}finally{clearTimeout(u),null==s||s.removeEventListener("abort",a)}})()}getRetryAfterDelayMs(e){const t=e.headers.get("Retry-After");if(!t)return;if(/^\d+$/.test(t)){const e=1e3*Number(t);return Number.isFinite(e)?e:Number.POSITIVE_INFINITY}const n=this.getNow(),r=function(e,t){const n=q.exec(e);if(n){const[,e,t,r,i,s,o,a]=n;return J({weekday:H.indexOf(e),day:Number(t),month:K.indexOf(r),year:Number(i),hour:Number(s),minute:Number(o),second:Number(a)})}const r=B.exec(e);if(r){const[,e,n,o,a,c,u,l]=r,d=new Date(t);if(Number.isNaN(d.getTime()))return;const p=d.getUTCFullYear();let f=100*Math.floor(p/100)+Number(a);f<p&&(f+=100);const h=K.indexOf(o),m={month:h,day:Number(n),hour:Number(c),minute:Number(u),second:Number(l),millisecond:0},g={month:d.getUTCMonth(),day:d.getUTCDate(),hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),millisecond:d.getUTCMilliseconds()};return(f>p+50||f===p+50&&(s=g,((i=m).month-s.month||i.day-s.day||i.hour-s.hour||i.minute-s.minute||i.second-s.second||i.millisecond-s.millisecond)>
20))&&(f-=100),J({weekday:V.indexOf(e),day:Number(n),month:h,year:f,hour:Number(c),minute:Number(u),second:Number(l)})}var i,s;const o=z.exec(e);if(!o)return;const[,a,c,u,l,d,p,f,h]=o;return J({weekday:H.indexOf(a),day:Number(null!=u?u:l),month:K.indexOf(c),year:Number(h),hour:Number(d),minute:Number(p),second:Number(f)})}(t,n);return null==r?void 0:Math.max(0,r-n)}reserveKeepalive(e,t){if(!1===t||e>6e4||ee+e>6e4||te>=9)return{keepalive:!1,release:D.l};ee+=e,te++;let n=!1;return{keepalive:!0,release:()=>{n||(n=!0,ee-=e,te--)}}}handleResponse(e){202===e.status&&"invalid"===e.headers.get("X-Faro-Session-Status")&&this.extendFaroSession(this.config,this.logDebug.bind(this)),e.text().catch(D.l)}isFetchNetworkError(e){return e instanceof TypeError||e instanceof ne||e instanceof DOMException&&"AbortError"===e.name}compress(e){return(0,O.A)(function*(){const t=[],n=new ReadableStream({start(t){t.enqueue((new TextEncoder).encode(e)),t.close()}}).pipeThrough(new CompressionStream("gzip")).getReader();for(;;){const{done:e,value:r}=yield n.read();if(e)return new Blob(t);t.push(r)}})()}extendFaroSession(e,t){const n=e.sessionTracking;if(null==n?void 0:n.enabled){const{fetchUserSession:e,storeUserSession:r}=(0,k.R)(n);(0,x.vP)({fetchUserSession:e,storeUserSession:r})({forceSessionExtend:!0}),t("Session expired created new session.")}else t("Session expired.")}},ie=n(31547),se=n(27661);function oe(e=se.Z,t=1){const n=ie.vc;return t>0&&(n.error=t>=1?function(...t){e.error(`${n.prefix}\n`,...t)}:D.l,n.warn=t>=2?function(...t){e.warn(`${n.prefix}\n`,...t)}:D.l,n.info=t>=3?function(...t){e.info(`${n.prefix}\n`,...t)}:D.l,n.debug=t>=4?function(...t){e.debug(`${n.prefix}\n`,...t)}:D.l),n}const ae="faro",ce={enabled:!0,sendTimeout:250,itemLimit:50};var ue=n(40920);const le=["dedupe","eventDomain","globalObjectKey","instrumentations","internalLoggerLevel","isolate","logArg
2sSerializer","metas","paused","preventGlobalExposure","unpatchedConsole","url","experimental"];function de(e,{experimental:t}){var n;const r=null!==(n=null==t?void 0:t.trackNavigation)&&void 0!==n&&n;return e.filter(e=>!("@grafana/faro-web-sdk:instrumentation-navigation"===e.name&&!r))}function pe(e){var t,n,r;const{page:i,generatePageId:s}=null!==(t=null==e?void 0:e.pageTracking)&&void 0!==t?t:{},o=[u,l,E({generatePageId:s,initialPageMeta:i}),...null!==(n=e.metas)&&void 0!==n?n:[],p];return(0,S.Gv)(null===(r=window)||void 0===r?void 0:r.k6)?[...o,_]:o}function fe({trackGeolocation:e,sessionTracking:t}){var n;const r={};return(0,S.Lm)(e)&&(r.geoLocationTrackingEnabled=e),(0,S.Im)(r)?{}:{session:(0,h.A)((0,h.A)({},null!==(n=null==t?void 0:t.session)&&void 0!==n?n:{}),{},{overrides:r})}}var he=class{constructor(e,t){var n,r;this.signalBuffer=[],this.itemLimit=null!==(n=null==t?void 0:t.itemLimit)&&void 0!==n?n:50,this.sendTimeout=null!==(r=null==t?void 0:t.sendTimeout)&&void 0!==r?r:250,this.paused=(null==t?void 0:t.paused)||!1,this.sendFn=e,this.paused||this.start(),"undefined"!=typeof document&&document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this.flush()})}addItem(e){this.paused||(this.signalBuffer.push(e),this.signalBuffer.length>=this.itemLimit&&this.flush())}start(){this.paused=!1,this.sendTimeout>0&&(this.flushInterval=setInterval(()=>this.flush(),this.sendTimeout))}pause(){this.paused=!0,clearInterval(this.flushInterval)}groupItems(e){const t=new Map;return e.forEach(e=>{const n=JSON.stringify(e.meta);let r=t.get(n);r=void 0===r?[e]:[...r,e],t.set(n,r)}),Array.from(t.values())}flush(){this.paused||0===this.signalBuffer.length||(this.groupItems(this.signalBuffer).forEach(this.sendFn),this.signalBuffer=[])}};function me(e,t){if(t.preserveOriginalError)for(const t of e)"exception"===t.type&&delete t.payload.originalError;return e}let ge=se.Z;function ve(e){var t;return ge=null!==(t=e.unpatchedConsole)&&void 0!==t?t:ge,ge}let be=ie.vc;function ye(e,t){return be=oe(e,t.internalLoggerLevel),be}var _e=n(94911),Se=n(71216),we=n(27520),Te=n(67542);let Ee;function Ae(e,t,n,r,i){t.debug("Initializing API");let s=null;const o=(0,_e.Ht)({transports:i,config:n,internalLogger:t,pushEvent:(e,n,r,i)=>{s?s(e,n,r,i):t.warn("pushEventImpl is not initialized. Event dropped:",{name:e,attributes:n,domain:r,options:i})}}),a=function(e,t,n,r,i){let s;return t.debug("Initializing traces API"),{getOTEL:()=>s,getTraceContext:()=>{const e=null==s?void 0:s.trace.getSpanContext(s.context.active());return e?{trace_id:e.traceId,span_id:e.spanId}:void 0},initOTEL:(e,n)=>{t.debug("Initializing OpenTelemetry"),s={trace:e,context:n}},isOTELInitialized:()=>!!s,pushTraces:e=>{try{const n={type:"trace",payload:e,meta:r.value};t.debug("Pushing trace\n",n),i.execute(n)}catch(e){t.error("Error pushing trace\n",e)}}}}(0,t,0,r,i),c={unpatchedConsole:e,internalLogger:t,userActionsApi:o,config:n,metas:r,transports:i,tracesApi:a},u=function({internalLogger:e,config:t,metas:n,transports:r,tracesApi:i,userActionsApi:s}){let o=null;return{pushEvent:(a,c,u,{skipDedupe:l,spanContext:d,timestampOverwriteMs:p,customPayloadTransformer:f=e=>e}={})=>{try{const h=(0,Te.Ti)(c),m={meta:n.value,payload:f({name:a,domain:null!=u?u:t.eventDomain,attributes:(0,S.Im)(h)?void 0:h,timestamp:p?(0,we.q5)(p):(0,we.mI)(),trace:d?{trace_id:d.traceId,span_id:d.spanId}:i.getTraceContext()}),type:"event"},g={name:m.payload.name,attributes:m.payload.attributes,domain:m.payload.domain};if(!l&&t.dedupe&&!(0,S.kZ)(o)&&(0,Se.b)(g,o))return void e.debug("Skipping event push because it is the same as the last one\n",m.payload);o=g,e.debug("Pushing event\n",m),(0,_e.NI)(s.getActiveUserAction(),m)||r.execute(m)}catch(t){e.error("Error pushing event",t)}}}}(c);return s=u.pushEvent,(0,R.A)((0,R.A)((0,R.A)((0,R.A)((0,R.A)((0,R.A)((0,R.A)({},a),function({internalLogger:e,config:t,metas:n,transports:r,tracesApi:i,userActionsApi:s}){var o;e.debug("Initializing exceptions API");let a=null;Ee=null!==(o=t.parseStacktrace)&&void 0!==o?o:Ee;const c=t=>{e.debug("Changing stacktrace parser"),Ee=null!=t?t:Ee},{ignoreErrors:u=[],preserveOriginalError:l}=t;return c(t.parseStacktrace),{changeStacktraceParser:c,getStacktraceParser:()=>Ee,pushError:(o,{skipDedupe:c,stackFrames:d,type:p,context:f,spanContext:h,timestampOverwriteMs:m,originalError:g,fingerprint:v,fatal:b}={})=>
2{if(!function(e,t){const{message:n,name:r,stack:i}=t;return s=n+" "+r+" "+i,e.some(e=>(0,S.Kg)(e)?s.includes(e):!!s.match(e));var s}(u,null!=g?g:o))try{var y,_;const u=(0,Te.Ti)((0,R.A)((0,R.A)({},function(e){let t=e.cause;return(0,S.bJ)(t)?t=e.cause.toString():null!==t&&((0,S.Gv)(e.cause)||(0,S.cy)(e.cause))?t=(0,Te.xD)(e.cause):null!=t&&(t=e.cause.toString()),null==t?{}:{cause:t}}(null!=g?g:o)),null!=f?f:{})),w={meta:n.value,payload:(0,R.A)((0,R.A)((0,R.A)((0,R.A)({type:p||o.name||"Error",value:o.message,timestamp:m?(0,we.q5)(m):(0,we.mI)(),trace:h?{trace_id:h.traceId,span_id:h.spanId}:i.getTraceContext()},(0,S.Im)(u)?{}:{context:u}),l?{originalError:g}:{}),v?{fingerprint:v}:{}),void 0!==b?{fatal:b}:{}),type:"exception"};(null==(d=null!==(y=d)&&void 0!==y?y:o.stack?null==Ee?void 0:Ee(o).frames:void 0)?void 0:d.length)&&(w.payload.stacktrace={frames:d});const T={type:w.payload.type,value:w.payload.value,stacktrace:w.payload.stacktrace,context:w.payload.context,fingerprint:w.payload.fingerprint,fatal:null!==(_=w.payload.fatal)&&void 0!==_&&_};if(!c&&t.dedupe&&!(0,S.kZ)(a)&&(0,Se.b)(T,a))return void e.debug("Skipping error push because it is the same as the last one\n",w.payload);a=T,e.debug("Pushing exception\n",w),(0,_e.NI)(s.getActiveUserAction(),w)||r.execute(w)}catch(t){e.error("Error pushing event",t)}}}}(c)),function({internalLogger:e,metas:t}){let n,r,i,s;e.debug("Initializing meta API");const o=e=>{r&&t.remove(r),r={user:e},t.add(r)},a=(e,r)=>{var i;const s=null==r?void 0:r.overrides,o=s?{overrides:(0,R.A)((0,R.A)({},null==n||null===(i=n.session)||void 0===i?void 0:i.overrides),s)}:{};n&&t.remove(n),n={session:(0,R.A)((0,R.A)({},(0,S.Im)(e)?void 0:e),o)},t.add(n)},c=()=>t.value.session,u=()=>t.value.page;return{setUser:o,resetUser:o,setSession:a,resetSession:a,getSession:c,setView:(e,n)=>{var r;if((null==n?void 0:n.overrides)&&a(c(),{overrides:n.overrides}),(null==i||null===(r=i.view)||void 0===r?void 0:r.name)===(null==e?void 0:e.name))return;const s=i;i={view:e},t.add(i),s&&t.remove(s)},getView:()=>t.value.view,setPage:e=>{var n;const r=(0,S.Kg)(e)?(0,R.A)((0,R.A)({},null!==(n=null==s?void 0:s.page)&&void 0!==n?n:u()),{},{id:e}):e;s&&t.remove(s),s={page:r},t.add(s)},getPage:u}}(c)),function({internalLogger:e,config:t,metas:n,transports:r,tracesApi:i,userActionsApi:s}){var o;e.debug("Initializing logs API");let a=null;
2const c=null!==(o=t.logArgsSerializer)&&void 0!==o?o:ue.Z;return{pushLog:(o,{context:u,level:l,skipDedupe:d,spanContext:p,timestampOverwriteMs:f}={})=>{try{const h=(0,Te.Ti)(u),m={type:"log",payload:{message:c(o),level:null!=l?l:"log",context:(0,S.Im)(h)?void 0:h,timestamp:f?(0,we.q5)(f):(0,we.mI)(),trace:p?{trace_id:p.traceId,span_id:p.spanId}:i.getTraceContext()},meta:n.value},g={message:m.payload.message,level:m.payload.level,context:m.payload.context};if(!d&&t.dedupe&&!(0,S.kZ)(a)&&(0,Se.b)(g,a))return void e.debug("Skipping log push because it is the same as the last one\n",m.payload);a=g,e.debug("Pushing log\n",m),(0,_e.NI)(s.getActiveUserAction(),m)||r.execute(m)}catch(t){e.error("Error pushing log\n",t)}}}}(c)),function({internalLogger:e,config:t,metas:n,transports:r,tracesApi:i,userActionsApi:s}){e.debug("Initializing measurements API");let o=null;return{pushMeasurement:(a,{skipDedupe:c,context:u,spanContext:l,timestampOverwriteMs:d}={})=>{try{const p=(0,Te.Ti)(u),f={type:"measurement",payload:(0,R.A)((0,R.A)({},a),{},{trace:l?{trace_id:l.traceId,span_id:l.spanId}:i.getTraceContext(),timestamp:d?(0,we.q5)(d):(0,we.mI)(),context:(0,S.Im)(p)?void 0:p}),meta:n.value},h={type:f.payload.type,values:f.payload.values,context:f.payload.context};if(!c&&t.dedupe&&!(0,S.kZ)(o)&&(0,Se.b)(h,o))return void e.debug("Skipping measurement push because it is the same as the last one\n",f.payload);o=h,e.debug("Pushing measurement\n",f),(0,_e.NI)(s.getActiveUserAction(),f)||r.execute(f)}catch(t){e.error("Error pushing measurement\n",t)}}}}(c)),u),o)}var xe=n(10629);function ke(e){const t=`__faroBundleId_${e}`,n=null===xe.J||void 0===xe.J?void 0:xe.J[t];if("string"==typeof n&&""!==n)return n;const r="undefined"!=typeof window?window[t]:void 0;return"string"==typeof r&&""!==r?r:void 0}var Oe=n(82393),Ce=n(3576);function Ie(e){const t=ve(e),n=ye(t,e);if((0,Oe.rI)()&&!e.isolate)return void n.error('Faro is already registered. Either add instrumentations, transports etc. to the global faro instance or use the "isolate" property');n.debug("Initializing");const r=function(e,t){let n=[],r=[];const i=()=>n.reduce((e,t)=>Object.assign(e,(0,S.Tn)(t)?t():t),{}),s=()=>
2{if(r.length){const e=i();r.forEach(t=>t(e))}};return{add:(...e)=>{t.debug("Adding metas\n",e),n.push(...e),s()},remove:(...e)=>{t.debug("Removing metas\n",e),n=n.filter(t=>!e.includes(t)),s()},addListener:e=>{t.debug("Adding metas listener\n",e),r.push(e)},removeListener:e=>{t.debug("Removing metas listener\n",e),r=r.filter(t=>t!==e)},get value(){return i()}}}(0,n),i=function(e,t,n,r){var i;t.debug("Initializing transports");const s=[];let o=[];const a=e=>{let t=e;for(const e of o){const r=t.map(e).filter(Boolean);if(0===r.length)return[];t=me(r,n)}return t};let c;return(null===(i=n.batching)||void 0===i?void 0:i.enabled)&&(c=new he(e=>{const n=a(e);if(0!==n.length)for(const e of s)t.debug(`Transporting item using ${e.name}\n`,n),e.isBatched()&&e.send(n)},{sendTimeout:n.batching.sendTimeout,itemLimit:n.batching.itemLimit,paused:n.paused})),{add:(...i)=>{t.debug("Adding transports"),i.forEach(i=>{t.debug(`Adding "${i.name}" transport`),s.some(e=>e===i)?t.warn(`Transport ${i.name} is already added`):(i.unpatchedConsole=e,i.internalLogger=t,i.config=n,i.metas=r,s.push(i))})},addBeforeSendHooks:(...e)=>{t.debug("Adding beforeSendHooks\n",o),e.forEach(e=>{e&&o.push(e)})},getBeforeSendHooks:()=>[...o],execute:e=>{var r;n.paused||((null===(r=n.batching)||void 0===r?void 0:r.enabled)&&(null==c||c.addItem(e)),(e=>{var r;if((null===(r=n.batching)||void 0===r?void 0:r.enabled)&&s.every(e=>e.isBatched()))return;const[i]=a([e]);if(void 0!==i)for(const e of s){var o;t.debug(`Transporting item using ${e.name}\n`,i),e.isBatched()?(null===(o=n.batching)||void 0===o?void 0:o.enabled)||e.send([i]):e.send(i)}})(e))},isPaused:()=>n.paused,pause:()=>{t.debug("Pausing transports"),null==c||c.pause(),n.paused=!0},remove:(...e)=>{t.debug("Removing transports"),e.forEach(e=>{t.debug(`Removing "${e.name}" transport`);const n=s.indexOf(e);-1!==n?s.splice(n,1):t.warn(`Transport "${e.name}" is not added`)})},removeBeforeSendHooks:(...e)=>{t.debug("Removing beforeSendHooks"),o=o.filter(t=>!e.includes(t))},get transports(){return[...s]},unpause:()=>{t.debug("Unpausing transports"),null==c||c.start(),n.paused=!1}}}(t,n,e,r),s=Ae(t,n,e,r,i),o=function(e,t,n,r,i,s){t.debug("Initializing instrumentations");const o=[];return{add:(...a)=>{t.debug("Adding instrumentations"),a.forEach(a=>{t.debug(`Adding "${a.name}" instrumentation`),o.some(e=>e.name===a.name)?t.warn(`Instrumentation ${a.name} is already added`):(a.unpatchedConsole=e,a.internalLogger=t,a.config=n,a.metas=r,a.transports=i,a.api=s,o.push(a),a.initialize())})},get instrumentations(){return[...o]},remove:(...e)=>{t.debug("Removing instrumentations"),e.forEach(e=>{var n,r;t.debug(`Removing "${e.name}" instrumentation`);const i=o.reduce((t,n,r)=>null===t&&n.name===e.name?r:null,null);null!==i?(null===(n=(r=o[i]).destroy)||void 0===n||n.call(r),o.splice(i,1)):t.warn(`Instrumentation "${e.name}" is not added`)})}}}(t,n,e,r,i,s),a=(0,Ce.A)(t,n,e,r,i,s,o);return function(e){var t,n;const r=e.config.app.name,i=r?function(e){return null===xe.J||void 0===xe.J?void 0:xe.J[`__faroGitHash_${e}`]}(r):void 0,s={sdk:{version:d.x,name:"faro"},app:(0,R.A)({bundleId:r&&ke(r)},void 0!==i?{gitHash:i}:{})},o=null===(t=e.config.sessionTracking)||void 0===t?void 0:t.session;o&&e.api.setSession(o),e.config.app&&(s.app=(0,R.A)((0,R.A)({},e.config.app),s.app)),e.config.user&&(s.user=e.config.user),e.config.view&&(s.view=e.config.view),e.metas.add(s,...null!==(n=e.config.metas)&&void 0!==n?n:[])}(a),function(e){e.transports.add(...e.config.transports),e.transports.addBeforeSendHooks(e.config.beforeSend)}(a),function(e){e.instrumentations.add(...e.config.instrumentations)}(a),a}function Pe(e){const t=function(e){var t,n,i,s,o,a,c;const u=[],l=oe(e.unpatchedConsole,e.internalLoggerLevel);var d;if(e.transports)(e.url||e.apiKey)&&l.error('if "transports" is defined, "url" and "apiKey" should not be defined'),(null===(d=e.experimental)||void 0===d?void 0:d.fetchTransportV2)&&l.error('experimental.fetchTransportV2 cannot take effect when explicit "transports" are defined'),u.push(...e.transports);else if(e.url){var p;const t=(null===(p=e.experimental)||void 0===p?void 0:p.fetchTransportV2)?re:F;u.push(new t({url:e.url,apiKey:e.apiKey,requestCompression:e.requestCompression}))}else l.error('either "url" or "transports" must be defined');const{dedupe:m=!0,eventDomain:_=r,globalObjectKey:S=ae,instrumentations:w=(0,y.w)(),internalLoggerLevel:T=ie.vI,isolate:E=!1,logArgsSerializer:x=ue.Z,metas:k=pe(e),paused:O=!1,preventGlobalExposure:C=!1,unpatchedConsole:I=se.Z,url:P,experimental:R}=e,L=A(e,le),N=null!==(t=null==R?void 0:R.trackNavigation)&&void 0!==t&&t,D=null!==(n=null==R?void 0:R.fetchTransportV2)&&void 0!==n&&n,M={dataAttributeName:(0,b.RZ)(null!==(i=null===(s=e.userActionsInstrumentation)||void 0===s?void 0:s.dataAttributeName)&&void 0!==i?i:v.Ij),excludeItem:null===(o=e.userActionsInstrumentation)||void 0===o?void 0:o.excludeItem,initialActivityTimeout:(0,b.iK)(null===(a=e.userActionsInstrumentation)||void 0===a?void 0:a.initialActivityTimeout,100,e=>l.warn(e))};return(0,h.A)((0,h.A)({},L),{},{batching:(0,h.A)((0,h.A)({},ce),e.batching),dedupe:m,globalObjectKey:S,instrumentations:de(w,e),internalLoggerLevel:T,isolate:E,logArgsSerializer:x,metas:k,parseStacktrace:g,paused:O,preventGlobalExposure:C,transports:u,unpatchedConsole:I,eventDomain:_,ignoreUrls:[...null!==(c=e.ignoreUrls)&&void 0!==c?c:[],...P?[P]:[],/\/collect(?:\/[\w]*)?$/],sessionTracking:(0,h.A)((0,h.A)((0,h.A)({},f.Fm),e.sessionTracking),fe({trackGeolocation:e.trackGeolocation,sessionTracking:e.sessionTracking})),userActionsInstrumentation:M,experimental:{trackNavigation:N,fetchTransportV2:D}})}(e);if(t)return Ie(t)}}
2,61854:(e,t,n)=>{"use strict";n.d(t,{G:()=>u});var r=n(42547),i=n(41708),s=n(26916),o=n(39745),a=n(3576),c=n(67542),u=class e{constructor(){this.adopting=!1,this.isAdopting=()=>this.adopting,this.adoptSession=e=>{this.adopting=!0;try{var t;null===(t=a.P.api)||void 0===t||t.setSession(e)}finally{this.adopting=!1}},this.updateSession=(0,i.n)(()=>this.updateUserSession(),s.MM),this.updateUserSession=(0,o.vP)({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession,adoptSession:this.adoptSession}),this.init()}static removeUserSession(){(0,r.Ai)(s.AQ,e.storageTypeLocal)}static storeUserSession(t){(0,r.SO)(s.AQ,(0,c.xD)(t),e.storageTypeLocal)}static fetchUserSession(){const t=(0,r.Gq)(s.AQ,e.storageTypeLocal);return t?JSON.parse(t):null}init(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.updateSession()}),a.P.metas.addListener((0,o.h$)({fetchUserSession:e.fetchUserSession,storeUserSession:e.storeUserSession}))}};u.storageTypeLocal=r.Uy.local},62659:(e,t,n)=>{"use strict";n.d(t,{LZ:()=>f,ao:()=>m,k1:()=>g});var r=n(2586),i=n(67099),s=n(2170),o=n(28279),a=n(45436),c=n(59511),u=n(21722),l=n(76772),d=n(78219);const p="_frozenDsc";function f(e,t){const n=e;(0,u.my)(n,p,t)}function h(e,t){const n=t.getOptions(),{publicKey:i,host:s}=t.getDsn()||{};let o;n.orgId?o=String(n.orgId):s&&(o=(0,a.ay)(s));const c={environment:n.environment||r.U,release:n.release,public_key:i,trace_id:e,org_id:o};return t.emit("createDsc",c),c}function m(e,t){const n=t.getPropagationContext();return n.dsc||h(n.traceId,e)}function g(e){const t=(0,i.KU)();if(!t)return{};const n=(0,l.zU)(e),r=(0,l.et)(n),a=r.data,u=n.spanContext().traceState,f=u?.get("sentry.sample_rate")??a[s.sy]??a[s.Ef];function m(e){return"number"!=typeof f&&"string"!=typeof f||(e.sample_rate=`${f}`),e}const g=n[p];if(g)return m(g);const v=u?.get("sentry.dsc"),b=v&&(0,o.yD)(v);if(b)return m(b);const y=h(e.spanContext().traceId,t),_=a[s.i_],S=r.description;return"url"!==_&&S&&(y.transaction=S),(0,c.f)()&&(y.sampled=String((0,l.pK)(n)),y.sample_rand=u?.get("sentry.sample_rand")??(0,d.L)(n).scope?.getPropagationContext().sampleRand.toString()),m(y),t.emit("createDsc",y,n),y}},63146:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var r=n(7365),i=n(77297),s=n(40417),o=n(1625);function a(e,t,n,c=0){return new o.T2((o,u)=>{const l=e[c];if(null===t||"function"!=typeof l)o(t);else{const d=l({...t},n);r.T&&l.id&&null===d&&s.vF.log(`Event processor "${l.id}" dropped event`),(0,i.Qg)(d)?d.then(t=>a(e,t,n,c+1).then(o)).then(null,u):a(e,d,n,c+1).then(o).then(null,u)}})}},63481:(e,t,n)=>{"use strict";n.d(t,{AP:()=>f,LV:()=>p,jN:()=>d,jf:()=>u});var r=n(89170),i=n(21722),s=n(67099),o=n(28261),a=n(37168),c=n(44977);const u=r.O;let l=0;function d(){return l>0}function p(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if((0,i.sp)(e))return e}catch(t){return e}const n=function(...n){try{const r=n.map(e=>p(e,t));return e.apply(this,r)}catch(e){throw l++,setTimeout(()=>{l--}),(0,s.v4)(r=>{r.addEventProcessor(e=>(t.mechanism&&((0,o.gO)(e,void 0,void 0),(0,o.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,a.Cp)(e)}),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}(0,i.pO)(n,e),(0,i.my)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function f(){const e=(0,c.$N)(),{referrer:t}=u.document||{},{userAgent:n}=u.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}},64482:(e,t,n)=>{"use strict";n.d(t,{F3:()=>i,N8:()=>o,TJ:()=>s,a3:()=>r});const r=0,i=1,s=2;function o(e,t){e.setAttribute("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:s,message:"unauthenticated"};case 403:return{code:s,message:"permission_denied"};case 404:return{code:s,message:"not_found"};case 409:return{code:s,message:"already_exists"};case 413:return{code:s,message:"failed_precondition"};case 429:return{code:s,message:"resource_exhausted"};case 499:return{code:s,message:"cancelled"};default:return{code:s,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:s,message:"unimplemented"};case 503:return{code:s,message:"unavailable"};case 504:return{code:s,message:"deadline_exceeded"};default:return{code:s,message:"internal_error"}}return{code:s,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}}
2,64829:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});var r=n(89170);let i,s,o;function a(e){const t=r.O._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return o&&n.length===s||(s=n.length,o=n.reduce((n,r)=>{i||(i={});const s=i[r];if(s)n[s[0]]=s[1];else{const s=e(r);for(let e=s.length-1;e>=0;e--){const o=s[e],a=o?.filename,c=t[r];if(a&&c){n[a]=c,i[r]=[a,c];break}}}return n},{})),o}},65890:(e,t,n)=>{"use strict";n.d(t,{FU:()=>s,M1:()=>i,Zf:()=>o});const r=(0,n(98902).n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function i(e){return e.setValue(r,!0)}function s(e){return e.deleteValue(r)}function o(e){return!0===e.getValue(r)}},67177:(e,t,n)=>{"use strict";n.d(t,{RH:()=>s,dM:()=>o,w9:()=>i});var r=n(14138);const i="0000000000000000",s="00000000000000000000000000000000",o={traceId:s,spanId:i,traceFlags:r.X.NONE}},67542:(e,t,n)=>{"use strict";n.d(t,{Ti:()=>s,xD:()=>i});var r=n(27840);function i(e={}){return JSON.stringify(null!=e?e:{},function(){const e=new WeakSet;return function(t,n){if((0,r.Gv)(n)&&null!==n){if(e.has(n))return null;e.add(n)}return n}}())}function s(e={}){const t={};for(const[n,s]of Object.entries(e))t[n]=(0,r.Gv)(s)&&null!==s?i(s):String(s);return t}},69734:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},70306:(e,t,n)=>{"use strict";n.d(t,{T:()=>bt});var r=n(37168),i=n(7365),s=n(40417);const o=[];function a(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r)}function c(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function u(e,t,n){if(n[t.name])i.T&&s.vF.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===o.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),o.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}i.T&&s.vF.log(`Integration installed: ${t.name}`)}}function l(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(e){}return t}var d=n(28261),p=n(27976);const f=[/^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$/],h=(e={})=>{let t;return{name:"EventFilters",setup(n){const r=n.getOptions();t=g(e,r)},processEvent(n,r,o){if(!t){const n=o.getOptions();t=g(e,n)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const n=e.transaction;return!!n&&(0,p.Xr)(n,t)}(e,t.ignoreTransactions))return i.T&&s.vF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,d.$X)(e)}`),!0}else{if(function(e,t){return!!t?.length&&l(e).some(e=>(0,p.Xr)(e,t))}(e,t.ignoreErrors))return i.T&&s.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,d.$X)(e)}`),!0;if(function(e){return!!e.exception?.values?.length&&(!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return i.T&&s.vF.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,d.$X)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const n=v(e);return!!n&&(0,p.Xr)(n,t)}(e,t.denyUrls))return i.T&&s.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,d.$X)(e)}.\nUrl: ${v(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const n=v(e);return!n||(0,p.Xr)(n,t)}(e,t.allowUrls))return i.T&&s.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,d.$X)(e)}.\nUrl: ${v(e)}`),!0}return!1}(n,t)?null:n}}},m=(e={})=>({...h(e),name:"InboundFilters"});function g(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:f],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function v(e){try{const t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(t){return i.T&&s.vF.error(`Cannot extract url for event ${(0,d.$X)(e)}`),null}}var b=n(67099),y=n(21722);let _;const S=new WeakMap,w=()=>({name:"FunctionToString",setupOnce(){_=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,y.sp)(this),n=S.has((0,b.KU)())&&void 0!==t?t:this;return _.apply(n,e)}}catch{}},setup(e){S.set(e,!0)}});var T=n(34564);const E=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!x(e,t)&&!!A(e,t))))}(e,t)||!!function(e,t){const n=k(t),r=k(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!x(e,t)&&!!A(e,t)))}(e,t))}(t,e))return i.T&&s.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function A(e,t){let n=(0,T.RV)(e),r=(0,T.RV)(t);if(!n&&!r)return!0;
2if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function x(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function k(e){return e.exception?.values&&e.exception.values[0]}var O=n(2586),C=n(32647),I=n(87655),P=n(62659),R=n(40685),L=n(76208),N=n(45436),D=n(77297),M=n(88213),U=n(5062),j=n(80608),$=n(76772),F=n(1625),q=n(2170);const B="Not capturing exception because it's already been captured.",z="Discarded session because of missing or non-string release",H=Symbol.for("SentryInternalError"),V=Symbol.for("SentryDoNotSendEventError");function K(e){return{message:e,[H]:!0}}function J(e){return{message:e,[V]:!0}}function G(e){return!!e&&"object"==typeof e&&H in e}function W(e){return!!e&&"object"==typeof e&&V in e}class X{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,N.AD)(e.dsn):i.T&&s.vF.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t,n){return t||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){const r=(0,d.eJ)();if((0,d.GR)(e))return i.T&&s.vF.log(B),r;const o={event_id:r,...t};return this._process(this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n))),o.event_id}captureMessage(e,t,n,r){const i={event_id:(0,d.eJ)(),...n},s=(0,D.NF)(e)?e:String(e),o=(0,D.sO)(e)?this.eventFromMessage(s,t,i):this.eventFromException(e,i);return this._process(o.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,n){const r=(0,d.eJ)();if(t?.originalException&&(0,d.GR)(t.originalException))return i.T&&s.vF.log(B),r;const o={event_id:r,...t},a=e.sdkProcessingMetadata||{},c=a.capturedSpanScope,u=a.capturedSpanIsolationScope;return this._process(this._captureEvent(e,o,c||n,u)),o.event_id}captureSession(e){this.sendSession(e),(0,I.qO)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;
2return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):(0,F.XW)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];u(this,e,this._integrations),t||c(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=(0,C.V7)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=(0,R.W3)(n,(0,R.bm)(e));const r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){const{release:t,environment:n=O.U}=this._options;if("aggregates"in e){const r=e.attrs||{};if(!r.release&&!t)return void(i.T&&s.vF.warn(z));r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return void(i.T&&s.vF.warn(z));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=(0,C.LE)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;i.T&&s.vF.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>(i.T&&s.vF.error("Error while sending envelope:",e),e)):(i.T&&s.vF.error("Transport disabled"),(0,F.XW)({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&u(e,t,n)}),n}(this,e),c(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const i=t.exception?.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(!1===t?.handled){n=!0;break}}}const s="ok"===e.status;(s&&0===e.errors||s&&n)&&((0,I.qO)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new F.T2(t=>{let n=0;const r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){const i=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s?.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,j.mG)(i,e,t,n,this,r).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:(0,b.vn)(n),...e.contexts};const r=(0,P.ao)(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n=(0,b.o5)(),r=(0,b.rm)()){return i.T&&Z(e)&&s.vF.log(`Captured error event \`${l(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{i.T&&(W(e)?s.vF.log(e.message):G(e)?s.vF.warn(e.message):s.vF.warn(e))})}_processEvent(e,t,n,r){const i=this.getOptions(),{sampleRate:s}=i,o=Q(e),a=Z(e),c=e.type||"error",u=`before send for type \`${c}\``,l=void 0===s?void 0:(0,U.i)(s);if(a&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),(0,F.xg)(J(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const d="replay_event"===c?"replay":c;return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),J("An event processor returned `null`, will not send event.");if(t.data&&!0===t.data.__sentry__)return e;const n=function(e,t,n,r){const{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:o}=t;let a=n;if(Z(a)&&i)return i(a,r);if(Q(a)){if(o){const e=o(function(e){const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:s,data:o,op:a}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:o?.[q.E1],exclusive_time:o?.[q.jG],measurements:e.measurements,is_segment:!0}}(a));if(e?a=(0,M.h)(n,{type:"transaction",timestamp:(c=e).timestamp,start_timestamp:c.start_timestamp,transaction:c.description,contexts:{trace:{trace_id:c.trace_id,span_id:c.span_id,parent_span_id:c.parent_span_id,op:c.op,status:c.status,origin:c.origin,data:{...c.data,...c.profile_id&&{[q.E1]:c.profile_id},...c.exclusive_time&&{[q.jG]:c.exclusive_time}}}},measurements:c.measurements}):(0,$.xl)(),a.spans){const e=[];for(const t of a.spans){const n=o(t);n?e.push(n):((0,$.xl)(),e.push(t))}a.spans=e}}if(s){if(a.spans){const e=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(a,r)}}var c;return a}(0,i,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,D.Qg)(e))return e.then(e=>{if(!(0,D.Qd)(e)&&null!==e)throw K(n);return e},e=>{throw K(`${t} rejected with ${e}`)});if(!(0,D.Qd)(e)&&null!==e)throw K(n);return e}(n,u)}).then(i=>
2{if(null===i){if(this.recordDroppedEvent("before_send",d),o){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw J(`${u} returned \`null\`, will not send event.`)}const s=n.getSession()||r.getSession();if(a&&s&&this._updateSessionFromEvent(s,i),o){const e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const c=i.transaction_info;if(o&&c&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...c,source:e}}return this.sendEvent(i,t),i}).then(null,e=>{if(W(e)||G(e))throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),K(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){i.T&&s.vF.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(i.T&&s.vF.log("No outcomes to send"));if(!this._dsn)return void(i.T&&s.vF.log("No dsn provided, will not send outcomes"));i.T&&s.vF.log("Sending outcomes:",e);const t=function(e,t){const n=[{type:"client_report"},{timestamp:(0,L.lu)(),discarded_events:e}];return(0,R.h4)(t?{dsn:t}:{},[n])}(e,this._options.tunnel&&(0,N.SB)(this._dsn));this.sendEnvelope(t)}}function Z(e){return void 0===e.type}function Q(e){return"transaction"===e.type}var Y=n(30721);function ee(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:Y.M})),version:Y.M}),e._metadata=i}var te=n(89170),ne=n(42731);function re(e,t){const n=t??function(e){return te.O._sentryClientToLogBufferMap?.get(e)}(e)??[];if(0===n.length)return;const r=e.getOptions(),i=(0,ne.l)(n,r._metadata,r.tunnel,e.getDsn());te.O._sentryClientToLogBufferMap?.set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function ie(e){void 0===e.user?.ip_address&&(e.user={...e.user,ip_address:"{{auto}}"})}function se(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}te.O._sentryClientToLogBufferMap=new WeakMap;var oe=n(78402);function ae(e,t){const n=ue(e,t),r={type:pe(t),value:fe(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function ce(e,t){return{exception:{values:[ae(e,t)]}}}function ue(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&le.test(e.message)?1:0}(t),i=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,i)}catch(e){}return[]}const le=/Minified React error #\d+;/i;function de(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function pe(e){const t=e?.name;return!t&&de(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function fe(e){const t=e?.message;return de(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function he(e,t,n,r,i){let s;if((0,D.T2)(t)&&t.error)return ce(e,t.error);if((0,D.BD)(t)||(0,D.W6)(t)){const i=t;if("stack"in t)s=ce(e,t);else{const t=i.name||((0,D.BD)(i)?"DOMError":"DOMException"),o=i.message?`${t}: ${i.message}`:t;s=me(e,o,n,r),(0,d.gO)(s,o)}return"code"in i&&(s.tags={...s.tags,"DOMException.code":`${i.code}`}),s}return(0,D.bJ)(t)?ce(e,t):(0,D.Qd)(t)||(0,D.xH)(t)?(s=function(e,t,n,r){const i=(0,b.KU)(),s=i?.getOptions().normalizeDepth,o=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:(0,oe.cd)(t,s)};if(o)return{exception:{values:[ae(e,o)]},extra:a};const c={exception:{values:[{type:(0,D.xH)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ge(t,{isUnhandledRejection:r})}]},extra:a};if(n){const t=ue(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}(e,t,n,i),(0,d.M6)(s,{synthetic:!0}),s):(s=me(e,t,n,r),(0,d.gO)(s,`${t}`,void 0),(0,d.M6)(s,{synthetic:!0}),s)}function me(e,t,n,r){const i={};if(r&&n){const r=ue(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,d.M6)(i,{synthetic:!0})}
2if((0,D.NF)(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function ge(e,{isUnhandledRejection:t}){const n=(0,y.HF)(e),r=t?"promise rejection":"exception";return(0,D.T2)(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:(0,D.xH)(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}var ve=n(63481);class be extends X{constructor(e){const t=(n=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:ve.jf.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;ee(t,"browser",["browser"],ve.jf.SENTRY_SDK_SOURCE||"npm"),super(t);const{sendDefaultPii:r,sendClientReports:i,_experiments:s}=this._options,o=s?.enableLogs;ve.jf.document&&(i||o)&&ve.jf.document.addEventListener("visibilitychange",()=>{"hidden"===ve.jf.document.visibilityState&&(i&&this._flushOutcomes(),o&&re(this))}),o&&(this.on("flush",()=>{re(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{re(this)},5e3)})),r&&(this.on("postprocessEvent",ie),this.on("beforeSendSession",se))}eventFromException(e,t){return function(e,t,n,r){const i=he(e,t,n?.syntheticException||void 0,r);return(0,d.M6)(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),(0,F.XW)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const s=me(e,t,r?.syntheticException||void 0,i);return s.level=n,r?.event_id&&(s.event_id=r.event_id),(0,F.XW)(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}var ye=n(91068);function _e(){"console"in te.O&&s.Ow.forEach(function(e){e in te.O.console&&(0,y.GS)(te.O.console,e,function(t){return s.Z9[e]=t,function(...t){const n={args:t,level:e};(0,ye.aj)("console",n);const r=s.Z9[e];r?.apply(te.O.console,t)}})})}var Se=n(94589),we=n(82549),Te=n(44977);function Ee(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}var Ae=n(50120),xe=n(80845);let ke,Oe,Ce;function Ie(){if(!xe.j.document)return;const e=ye.aj.bind(null,"dom"),t=Pe(e,!0);xe.j.document.addEventListener("click",t,!1),xe.j.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=xe.j,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,y.GS)(r,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){const r=Pe(e);s.handler=r,t.call(this,n,r,i)}s.refCount++}catch(e){}return t.call(this,n,r,i)}}),(0,y.GS)(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function Pe(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;(0,y.my)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,y.my)(r,"_sentryId",(0,d.eJ)());const i="keypress"===n.type?"input":n.type;(function(e){if(e.type!==Oe)return!1;try{if(!e.target||e.target._sentryId!==Ce)return!1}catch(e){}return!0})(n)||(e({event:n,name:i,global:t}),Oe=n.type,Ce=r?r._sentryId:void 0),clearTimeout(ke),ke=xe.j.setTimeout(()=>{Ce=void 0,Oe=void 0},1e3)}}var Re=n(85294),Le=n(35596),Ne=n(53314);const De=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console";(0,ye.s5)(t,e),(0,ye.AS)(t,_e)}(function(e){return function(t){if((0,b.KU)()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(r=t.level,"warn"===r?"warning":["fatal","error","warning","log","info","debug"].includes(r)?r:"log"),message:(0,p.gt)(t.args," ")};var r;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,p.gt)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,we.Z)(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if((0,b.KU)()!==e)return;let r,i,o="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>1024&&(Ne.T&&s.vF.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof o&&(o=[o]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=(0,Te.Hd)(t,{keyAttrs:o,maxStringLength:a}),i=(0,Te.xE)(t)}catch(e){r="<unknown>"}if(0===r.length)return;const c={category:`ui.${n.name}`,message:r};
2i&&(c.data={"ui.component_name":i}),(0,we.Z)(c,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),(0,ye.s5)("dom",n),(0,ye.AS)("dom",Ie)),t.xhr&&(0,Re.Mn)(function(e){return function(t){if((0,b.KU)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Re.Er];if(!n||!r||!i)return;const{method:s,url:o,status_code:a,body:c}=i,u={method:s,url:o,status_code:a},l={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:u,type:"http",level:Ee(a)};e.emit("beforeOutgoingRequestBreadcrumb",d,l),(0,we.Z)(d,l)}}(e)),t.fetch&&(0,Se.ur)(function(e){return function(t){if((0,b.KU)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const i=t.fetchData,s={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},o={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,s),(0,we.Z)(o,s)}else{const i=t.response,s={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size;const o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:s,type:"http",level:Ee(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,o),(0,we.Z)(a,o)}}}(e)),t.history&&(0,Le._)(function(e){return function(t){if((0,b.KU)()!==e)return;let n=t.from,r=t.to;const i=(0,Ae.Dl)(ve.jf.location.href);let s=n?(0,Ae.Dl)(n):void 0;const o=(0,Ae.Dl)(r);s?.path||(s=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),(0,we.Z)({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){(0,b.KU)()===e&&(0,we.Z)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,d.$X)(t)},{event:t})}}(e))}}},Me=["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"],Ue=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,y.GS)(ve.jf,"setTimeout",je),t.setInterval&&(0,y.GS)(ve.jf,"setInterval",je),t.requestAnimationFrame&&(0,y.GS)(ve.jf,"requestAnimationFrame",$e),t.XMLHttpRequest&&"XMLHttpRequest"in ve.jf&&(0,y.GS)(XMLHttpRequest.prototype,"send",Fe);const e=t.eventTarget;e&&(Array.isArray(e)?e:Me).forEach(e=>function(e,t){const n=ve.jf,r=n[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,y.GS)(r,"addEventListener",function(n){return function(r,i,s){try{"function"==typeof i.handleEvent&&(i.handleEvent=(0,ve.LV)(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,T.qQ)(i),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,n){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,n)}(this,r,i),n.apply(this,[r,(0,ve.LV)(i,{mechanism:{data:{function:"addEventListener",handler:(0,T.qQ)(i),target:e},handled:!1,type:"instrument"}}),s])}}),(0,y.GS)(r,"removeEventListener",function(e){return function(t,n,r){try{const i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}(e,t))}}};function je(e){return function(...t){const n=t[0];return t[0]=(0,ve.LV)(n,{mechanism:{data:{function:(0,T.qQ)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function $e(e){return function(t){return e.apply(this,[(0,ve.LV)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,T.qQ)(e)},handled:!1,type:"instrument"}})])}}function Fe(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e
2=>{e in n&&"function"==typeof n[e]&&(0,y.GS)(n,e,function(t){const n={mechanism:{data:{function:e,handler:(0,T.qQ)(t)},handled:!1,type:"instrument"}},r=(0,y.sp)(t);return r&&(n.mechanism.data.handler=(0,T.qQ)(r)),(0,ve.LV)(t,n)})}),e.apply(this,t)}}const qe=()=>({name:"BrowserSession",setupOnce(){void 0!==ve.jf.document?((0,r.J0)({ignoreDuration:!0}),(0,r.J5)(),(0,Le._)(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,r.J0)({ignoreDuration:!0}),(0,r.J5)())})):Ne.T&&s.vF.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}});var Be=n(84110),ze=n(2184);const He=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){(0,Be.L)(t=>{const{stackParser:n,attachStacktrace:i}=Ke();if((0,b.KU)()!==e||(0,ve.jN)())return;const{msg:s,url:o,line:a,column:c,error:u}=t,l=function(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=r,l=n,d=(0,D.Kg)(t)&&t.length>0?t:(0,Te.$N)();return 0===c.length&&c.push({colno:u,filename:d,function:T.yF,in_app:!0,lineno:l}),e}(he(n,u||s,void 0,i,!1),o,a,c);l.level="error",(0,r.r)(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}(e),Ve("onerror")),t.onunhandledrejection&&(function(e){(0,ze.r)(t=>{const{stackParser:n,attachStacktrace:i}=Ke();if((0,b.KU)()!==e||(0,ve.jN)())return;const s=function(e){if((0,D.sO)(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}(t),o=(0,D.sO)(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:he(n,s,void 0,i,!0);o.level="error",(0,r.r)(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(e),Ve("onunhandledrejection"))}}};function Ve(e){Ne.T&&s.vF.log(`Global Handler attached: ${e}`)}function Ke(){const e=(0,b.KU)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Je=()=>({name:"HttpContext",preprocessEvent(e){if(!ve.jf.navigator&&!ve.jf.location&&!ve.jf.document)return;const t=(0,ve.AP)(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}});function Ge(e,t,n,r,i,s){if(!i.exception?.values||!s||!(0,D.tH)(s.originalException,Error))return;const o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=We(e,t,r,s.originalException,n,i.exception.values,o,0))}function We(e,t,n,r,i,s,o,a){if(s.length>=n+1)return s;let c=[...s];if((0,D.tH)(r[i],Error)){Xe(o,a);const s=e(t,r[i]),u=c.length;Ze(s,i,u,a),c=We(e,t,n,r[i],i,[s,...c],s,u)}return Array.isArray(r.errors)&&r.errors.forEach((r,s)=>{if((0,D.tH)(r,Error)){Xe(o,a);const u=e(t,r),l=c.length;Ze(u,`errors[${s}]`,l,a),c=We(e,t,n,r,i,[u,...c],u,l)}}),c}function Xe(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Ze(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}}const Qe=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){Ge(ae,i.getOptions().stackParser,n,t,e,r)}}};function Ye(e,t,n,r){const i={filename:e,function:"<anonymous>"===t?T.yF:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const et=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nt=/\((\S*)(?::(\d+))(?::(\d+))\)/,rt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,it=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,st=[[30,e=>{const t=et.exec(e);if(t){const[,e,n,r]=t;return Ye(e,T.yF,+n,+r)}const n=tt.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=nt.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=at(n[1]||T.yF,n[2]);return Ye(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=rt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=it.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||T.yF;return[n,e]=at(n,e),Ye(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]],ot=(0,T.gd)(...st),at=(e,t)=>
2{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:T.yF,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ct=Symbol.for("SentryBufferFullError");const ut=6e4;const lt=64;function dt(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,F.xg)(ct);const i=r();return-1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new F.T2((n,r)=>{let i=t.length;if(!i)return n(!0);const s=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,F.XW)(e).then(()=>{--i||(clearTimeout(s),n(!0))},r)})})}}}(e.bufferSize||lt)){let r={};return{send:function(o){const a=[];if((0,R.yH)(o,(t,n)=>{const i=(0,R.zk)(n);!function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)?a.push(t):e.recordDroppedEvent("ratelimit_backoff",i)}),0===a.length)return(0,F.XW)({});const c=(0,R.h4)(o[0],a),u=t=>{(0,R.yH)(c,(n,r)=>{e.recordDroppedEvent(t,(0,R.zk)(r))})};return n.add(()=>t({body:(0,R.bN)(c)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&i.T&&s.vF.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},s=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,n,,,s]=e.split(":",5),o=parseInt(t,10),a=1e3*(isNaN(o)?60:o);if(n)for(const e of n.split(";"))"metric_bucket"===e&&s&&!s.split(";").includes("custom")||(i[e]=r+a);else i.all=r+a}else o?i.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?ut:r-t}(o,r):429===t&&(i.all=r+6e4);return i}(r,e),e),e=>{throw u("network_error"),i.T&&s.vF.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===ct)return i.T&&s.vF.error("Skipped sending event because buffer is full."),u("queue_overflow"),(0,F.XW)({});throw e})},flush:e=>n.drain(e)}}var pt=n(18169),ft=n(69734);const ht={};function mt(e){ht[e]=void 0}function gt(e,t=function(e){const t=ht[e];if(t)return t;let n=xe.j[e];if((0,pt.a3)(n))return ht[e]=n.bind(xe.j);const r=xe.j.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){ft.T&&s.vF.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?ht[e]=n.bind(xe.j):n}("fetch")){let n=0,r=0;return dt(e,function(i){const s=i.body.length;n+=s,r++;const o={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return mt("fetch"),(0,F.xg)("No fetch implementation available");try{return t(e.url,o).then(e=>(n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return mt("fetch"),n-=s,r--,(0,F.xg)(e)}})}var vt=n(14041);function bt(e){const t={...e};return ee(t,"react"),(0,r.o)("react",{version:vt.version}),function(e={}){const t=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===ve.jf.window)return!1;const e=ve.jf;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const n=(0,Te.$N)();return!(ve.jf===ve.jf.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>n.startsWith(`${e}://`)))}()&&(Ne.T&&(0,s.pq)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),n={...e,enabled:!t&&e.enabled,stackParser:(0,T.vk)(e.stackParser||ot),integrations:a({integrations:e.integrations,defaultIntegrations:null==e.defaultIntegrations?[m(),w(),Ue(),De(),He(),Qe(),E(),Je(),qe()]:e.defaultIntegrations}),transport:e.transport||gt};return function(e,t){!0===t.debug&&(i.T?s.vF.enable():(0,s.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,b.o5)().update(t.initialScope);const n=new e(t);return function(e){(0,b.o5)().setClient(e)}(n),n.init(),n}(be,n)}(t)}},71216:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var r=n(27840);function i(e,t){if(e===t)return!0;
2if((0,r.Ed)(e,"number")&&isNaN(e))return(0,r.Ed)(t,"number")&&isNaN(t);const n=(0,r.cy)(e),s=(0,r.cy)(t);if(n!==s)return!1;if(n&&s){const n=e.length;if(n!==t.length)return!1;for(let r=n;0!==r--;)if(!i(e[r],t[r]))return!1;return!0}const o=(0,r.Gv)(e),a=(0,r.Gv)(t);if(o!==a)return!1;if(e&&t&&o&&a){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let e of n)if(!r.includes(e))return!1;for(let r of n)if(!i(e[r],t[r]))return!1;return!0}return!1}},71664:(e,t,n)=>{"use strict";n.d(t,{IP:()=>u,YA:()=>c,hX:()=>a});var r=n(67177),i=n(6461);const s=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function o(e,t){if("string"!=typeof e||e.length!==t)return!1;let n=0;for(let t=0;t<e.length;t+=4)n+=(0|s[e.charCodeAt(t)])+(0|s[e.charCodeAt(t+1)])+(0|s[e.charCodeAt(t+2)])+(0|s[e.charCodeAt(t+3)]);return n===t}function a(e){return o(e,32)&&e!==r.RH}function c(e){return a(e.traceId)&&o(t=e.spanId,16)&&t!==r.w9;var t}function u(e){return new i.d(e)}},71895:(e,t,n)=>{"use strict";n.d(t,{mS:()=>l,$G:()=>u,kv:()=>d});const r="1.9.1",i=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,s=function(e){const t=new Set([e]),n=new Set,r=e.match(i);if(!r)return()=>!1;const s=+r[1],o=+r[2],a=+r[3];if(null!=r[4])return function(t){return t===e};function c(e){return n.add(e),!1}function u(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;const r=e.match(i);if(!r)return c(e);const l=+r[1],d=+r[2],p=+r[3];return null!=r[4]||s!==l?c(e):0===s?o===d&&a<=p?u(e):c(e):o<=d?u(e):c(e)}}(r),o=r.split(".")[0],a=Symbol.for(`opentelemetry.js.api.${o}`),c="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{};function u(e,t,n,i=!1){var s;const o=c[a]=null!==(s=c[a])&&void 0!==s?s:{version:r};if(!i&&o[e]){const t=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return n.error(t.stack||t.message),!1}if(o.version!==r){const t=new Error(`@opentelemetry/api: Registration of version v${o.version} for ${e} does not match previously registered API v${r}`);return n.error(t.stack||t.message),!1}return o[e]=t,n.debug(`@opentelemetry/api: Registered a global for ${e} v${r}.`),!0}function l(e){var t,n;const r=null===(t=c[a])||void 0===t?void 0:t.version;if(r&&s(r))return null===(n=c[a])||void 0===n?void 0:n[e]}function d(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${r}.`);const n=c[a];n&&delete n[e]}},72013:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var r=n(31547),i=n(27661),s=class{constructor(){this.unpatchedConsole=i.Z,this.internalLogger=r.vc,this.config={},this.metas={}}logDebug(...e){this.internalLogger.debug(`${this.name}\n`,...e)}logInfo(...e){this.internalLogger.info(`${this.name}\n`,...e)}logWarn(...e){this.internalLogger.warn(`${this.name}\n`,...e)}logError(...e){this.internalLogger.error(`${this.name}\n`,...e)}}},75736:(e,t,n)=>{"use strict";function r(){}n.d(t,{l:()=>r})},76208:(e,t,n)=>{"use strict";n.d(t,{k3:()=>c,lu:()=>s,zf:()=>o});var r=n(89170);const i=1e3;function s(){return Date.now()/i}const o=function(){const{performance:e}=r.O;if(!e?.now)return s;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/i}();let a;function c(){return a||(a=function(){const{performance:e}=r.O;if(!e?.now)return[void 0,"none"];const t=36e5,n=e.now(),i=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,o=s<t,a=e.timing?.navigationStart,c="number"==typeof a?Math.abs(a+n-i):t;return o||c<t?s<=c?[e.timeOrigin,"timeOrigin"]:[a,"navigationStart"]:[i,"dateNow"]}()),a[0]}},76772:(e,t,n)=>{"use strict";n.d(t,{Bk:()=>L,CC:()=>m,Ck:()=>b,Hu:()=>C,Qh:()=>_,VS:()=>I,aO:()=>g,cI:()=>w,et:()=>E,kX:()=>y,pK:()=>A,uU:()=>S,xO:()=>P,xl:()=>N,yW:()=>x,zU:()=>R});var r=n(4899),i=n(43223),s=n(67099),o=n(2170),a=n(64482),c=n(78219),u=n(40417),l=n(21722),d=n(74904),p=n(76208),f=n(42823),h=n(25626);const m=0,g=1;let v=!1;function b(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:o,origin:a,links:c}=E(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:o,origin:a,links:c}}function y(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:E(e).parent_span_id,s=(0,c.L)(e).scope;return{parent_span_id:i,span_id:r?s?.getPropagationContext().propagationSpanId||(0,d.Z)():t,trace_id:n}}function _(e){const{traceId:t,spanId:n}=e.spanContext(),r=A(e);return(0,f.TC)(t,n,r)}function S(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===g,attributes:i,...r})):void 0}function w(e){return"number"==typeof e?T(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?T(e.getTime()):(0,p.zf)()}function T(e){return e>9999999999?e/1e3:e}function E(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:i,name:s,endTime:a,status:c,links:u}=e;return{span_id:t,trace_id:n,data:r,description:s,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:w(i),timestamp:w(a)||void 0,status:x(c),op:r[o.uT],origin:r[o.JD],links:S(u)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function A(e){const{traceFlags:t}=e.spanContext();return t===g}function x(e){if(e&&e.code!==a.a3)return e.code===a.F3?"ok":e.message||"unknown_error"}const k="_sentryChildSpans",O="_sentryRootSpan";function C(e,t){const n=e[O]||e;(0,l.my)(t,O,n),e[k]?e[k].add(t):(0,l.my)(e,k,new Set([t]))}function I(e,t){e[k]&&e[k].delete(t)}function P(e){const t=new Set;return function e(n){if(!t.has(n)&&A(n)){t.add(n);const r=n[k]?Array.from(n[k]):[];for(const t of r)e(t)}}(e),Array.from(t)}function R(e){return e[O]||e}function L(){const e=(0,i.EU)(),t=(0,r.h)(e);return t.getActiveSpan?t.getActiveSpan():(0,h.f)((0,s.o5)())}function N(){v||((0,u.pq)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),v=!0)}},77297:(e,t,n)=>{"use strict";n.d(t,{BD:()=>a,Kg:()=>u,L2:()=>y,NF:()=>l,Qd:()=>p,Qg:()=>g,T2:()=>o,W6:()=>c,bJ:()=>i,gd:()=>m,ks:()=>_,mE:()=>v,sO:()=>d,tH:()=>b,vq:()=>h,xH:()=>f});const r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object E
2xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return b(e,Error)}}function s(e,t){return r.call(e)===`[object ${t}]`}function o(e){return s(e,"ErrorEvent")}function a(e){return s(e,"DOMError")}function c(e){return s(e,"DOMException")}function u(e){return s(e,"String")}function l(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||l(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return s(e,"Object")}function f(e){return"undefined"!=typeof Event&&b(e,Event)}function h(e){return"undefined"!=typeof Element&&b(e,Element)}function m(e){return s(e,"RegExp")}function g(e){return Boolean(e?.then&&"function"==typeof e.then)}function v(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function b(e,t){try{return e instanceof t}catch(e){return!1}}function y(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function _(e){return"undefined"!=typeof Request&&b(e,Request)}},77868:(e,t,n)=>{"use strict";function r(e,t,n,r){const i={filename:e||document.location.href,function:t||"?"};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}n.d(t,{S:()=>r})},78114:(e,t,n)=>{"use strict";n.d(t,{Rg:()=>a,e2:()=>o});var r=n(62659),i=n(88213),s=n(76772);function o(e,t){const{fingerprint:n,span:i,breadcrumbs:o,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:s,level:o,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),o&&(e.level=o),a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),i&&function(e,t){e.contexts={trace:(0,s.kX)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,r.k1)(t),...e.sdkProcessingMetadata};const n=(0,s.zU)(t),i=(0,s.et)(n).description;i&&!e.transaction&&"transaction"===e.type&&(e.transaction=i)}(e,i),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function a(e,t){const{extra:n,tags:r,user:s,contexts:o,level:a,sdkProcessingMetadata:u,breadcrumbs:l,fingerprint:d,eventProcessors:p,attachments:f,propagationContext:h,transactionName:m,span:g}=t;c(e,"extra",n),c(e,"tags",r),c(e,"user",s),c(e,"contexts",o),e.sdkProcessingMetadata=(0,i.h)(e.sdkProcessingMetadata,u,2),a&&(e.level=a),m&&(e.transactionName=m),g&&(e.span=g),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...h}}function c(e,t,n){e[t]=(0,i.h)(e[t],n,1)}},78219:(e,t,n)=>{"use strict";n.d(t,{L:()=>a,d:()=>o});var r=n(21722);const i="_sentryScope",s="_sentryIsolationScope";function o(e,t,n){e&&((0,r.my)(e,s,n),(0,r.my)(e,i,t))}function a(e){return{scope:e[i],isolationScope:e[s]}}},78402:(e,t,n)=>{"use strict";n.d(t,{S8:()=>o,cd:()=>a});var r=n(77297),i=n(21722),s=n(34564);function o(e,t=100,n=1/0){try{return c("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function a(e,t=3,n=102400){const r=o(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?a(e,t-1,n):r;var i}function c(e,t,n=1/0,o=1/0,a=function(){const e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){const[u,l]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.L2)(t))return"[VueViewModel]";if((0,r.mE)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,s.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;const p="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===p)return d.replace("object ","");if(u(t))return"[Circular ~]";const f=t;if(f&&"function"==typeof f.toJSON)try{return c("",f.toJSON(),p-1,o,a)}catch(e){}const h=Array.isArray(t)?[]:{};let m=0;const g=(0,i.W4)(t);for(const e in g){if(!Object.prototype.hasOwnProperty.call(g,e))continue;if(m>=o){h[e]="[MaxProperties ~]";break}const t=g[e];h[e]=c(e,t,p-1,o,a),m++}return l(t),h}},79232:(e,t,n)=>{"use strict";var r;n.d(t,{u:()=>r}
2),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"}(r||(r={}))},79453:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(2339);function i(){return e=>{r.s.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){const t={};let n=e;for(;null!==n;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;const r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}(e))}(e))}}},80066:(e,t)=>{"use strict";function n(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBinary=void 0,t.hexToBinary=function(e){const t=new Uint8Array(e.length/2);let r=0;for(let i=0;i<e.length;i+=2){const s=n(e.charCodeAt(i)),o=n(e.charCodeAt(i+1));t[r++]=s<<4|o}return t}},80608:(e,t,n)=>{"use strict";n.d(t,{li:()=>h,mG:()=>f});var r=n(2586),i=n(67099),s=n(63146),o=n(83103),a=n(78114),c=n(64829),u=n(28261),l=n(78402),d=n(27976),p=n(76208);function f(e,t,n,f,h,m){const{normalizeDepth:g=3,normalizeMaxBreadth:v=1e3}=e,b={...t,event_id:t.event_id||n.event_id||(0,u.eJ)(),timestamp:t.timestamp||(0,p.lu)()},y=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:i,dist:s,maxValueLength:o=250}=t;e.environment=e.environment||n||r.U,!e.release&&i&&(e.release=i),!e.dist&&s&&(e.dist=s);const a=e.request;a?.url&&(a.url=(0,d.xv)(a.url,o))}(b,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(b,y),h&&h.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=(0,c.z)(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}(b,e.stackParser);const _=function(e,t){if(!t)return e;const n=e?e.clone():new o.H;return n.update(t),n}(f,n.captureContext);n.mechanism&&(0,u.M6)(b,n.mechanism);const S=h?h.getEventProcessors():[],w=(0,i.m6)().getScopeData();if(m){const e=m.getScopeData();(0,a.Rg)(w,e)}if(_){const e=_.getScopeData();(0,a.Rg)(w,e)}const T=[...n.attachments||[],...w.attachments];T.length&&(n.attachments=T),(0,a.e2)(b,w);const E=[...S,...w.eventProcessors];return(0,s.j)(E,b,n).then(e=>(e&&function(e){const t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof g&&g>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,l.S8)(e.data,t,n)}}))},...e.user&&{user:(0,l.S8)(e.user,t,n)},...e.contexts&&{contexts:(0,l.S8)(e.contexts,t,n)},...e.extra&&{extra:(0,l.S8)(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,l.S8)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,l.S8)(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=(0,l.S8)(e.contexts.flags,3,n)),r}(e,g,v):e))}function h(e){if(e)return function(e){return e instanceof o.H||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>m.includes(e))}(e)?{captureContext:e}:e}const m=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},80845:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});const r=n(89170).O},82393:(e,t,n)=>{"use strict";n.d(t,{rI:()=>o,N2:()=>s});var r=n(10629);const i="_faroInternal";function s(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(r.J,i,{configurable:!1,enumerable:!1,writable:!1,value:e}))}function o(){return i in r.J}},83327:(e,t,n)=>{"use strict";n.d(t,{D:()=>h});const r=/^\s*at (?:(?![a-z]+:\/\/)([^(]+?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/\((\S*)(?::(\d+))(?::(\d+))\)/,s=/^(?=[\s\S]*?(?:\/|bundle|\.js|\[native code]))\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,o=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,a="safari-extension",c="safari-web-extension",u=/Minified React error #\d+;/i;var l=n(77868);function d(e,t){const n=null==e?void 0:e.includes(a),r=!n&&(null==e?void 0:e.includes("safari-web-extension"));return n||r?[(null==e?void 0:e.includes("@"))?e.split("@")[0]:e,n?`${a}:${t}`:`${c}:${t}`]:[e,t]}var p=n(27840);const f=1024;function h(e){let t=[];e.stacktrace?t=e.stacktrace.split("\n").filter((e,t)=>
2t%2==0):e.stack&&(t=e.stack.split("\n"));const n=t.reduce((t,n,a)=>{if(n.length>f)return t;let c,u,h,m,g;if(c=r.exec(n)){if(u=c[1],h=c[2],m=c[3],g=c[4],null==h?void 0:h.startsWith("eval")){const e=i.exec(h);e&&(h=e[1],m=e[2],g=e[3])}h=(null==h?void 0:h.startsWith("address at "))?h.substring(11):h,[u,h]=d(u,h)}else if(c=s.exec(n)){if(u=c[1],h=c[3],m=c[4],g=c[5],h&&h.includes(" > eval")){const e=o.exec(h);e&&(u=u||"eval",h=e[1],m=e[2])}else 0===a&&!g&&(0,p.Et)(e.columnNumber)&&(g=String(e.columnNumber+1));[u,h]=d(u,h)}return(h||u)&&t.push((0,l.S)(h,u,m?Number(m):void 0,g?Number(g):void 0)),t},[]);return u.test(e.message)?n.slice(1):n}},84110:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(89170),i=n(91068);let s=null;function o(e){const t="error";(0,i.s5)(t,e),(0,i.AS)(t,a)}function a(){s=r.O.onerror,r.O.onerror=function(e,t,n,r,o){const a={column:r,error:o,line:n,msg:e,url:t};return(0,i.aj)("error",a),!!s&&s.apply(this,arguments)},r.O.onerror.__SENTRY_INSTRUMENTED__=!0}},85294:(e,t,n)=>{"use strict";n.d(t,{Er:()=>a,Mn:()=>c});var r=n(91068),i=n(76208),s=n(77297),o=n(80845);const a="__sentry_xhr_v3__";function c(e){(0,r.s5)("xhr",e),(0,r.AS)("xhr",u)}function u(){if(!o.j.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const o=new Error,c=1e3*(0,i.zf)(),u=(0,s.Kg)(n[0])?n[0].toUpperCase():void 0,l=function(e){if((0,s.Kg)(e))return e;try{return e.toString()}catch{}}(n[1]);if(!u||!l)return e.apply(t,n);t[a]={method:u,url:l,request_headers:{}},"POST"===u&&l.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const d=()=>{const e=t[a];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}const n={endTimestamp:1e3*(0,i.zf)(),startTimestamp:c,xhr:t,virtualError:o};(0,r.aj)("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(d(),e.apply(t,n))}):t.addEventListener("readystatechange",d),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,i]=n,o=t[a];return o&&(0,s.Kg)(r)&&(0,s.Kg)(i)&&(o.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const s=t[a];if(!s)return e.apply(t,n);void 0!==n[0]&&(s.body=n[0]);const o={startTimestamp:1e3*(0,i.zf)(),xhr:t};return(0,r.aj)("xhr",o),e.apply(t,n)}})}},85728:(e,t,n)=>{"use strict";n.d(t,{J:()=>i,f:()=>r});let r=function(e){return e.EXCEPTION="exception",e.LOG="log",e.MEASUREMENT="measurement",e.TRACE="trace",e.EVENT="event",e}({});const i={exception:"exceptions",log:"logs",measurement:"measurements",trace:"traces",event:"events"}},87655:(e,t,n)=>{"use strict";n.d(t,{Vu:()=>a,fj:()=>s,qO:()=>o});var r=n(28261),i=n(76208);function s(e){const t=(0,i.zf)(),n={sid:(0,r.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}(n)};return e&&o(n,e),n}function o(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function a(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),o(e,n)}},91068:(e,t,n)=>{"use strict";n.d(t,{AS:()=>u,aj:()=>l,s5:()=>c});var r=n(7365),i=n(40417),s=n(34564);const o={},a={};function c(e,t){o[e]=o[e]||[],o[e].push(t)}function u(e,t){if(!a[e]){a[e]=!0;try{t()}catch(t){r.T&&i.vF.error(`Error while instrumenting ${e}`,t)}}}function l(e,t){const n=e&&o[e];if(n)for(const o of n)try{o(t)}catch(t){r.T&&i.vF.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,s.qQ)(o)}\nError:`,t)}}},92807:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?s(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{A:()=>o})},94589:(e,t,n)=>{"use strict";n.d(t,{B$:()=>l,ur:()=>u});var r=n(77297),i=n(21722),s=n(18169),o=n(76208),a=n(89170),c=n(91068);function u(e,t){const n="fetch";(0,c.s5)(n,e),(0,c.AS)(n,()=>d(void 0,t))}function l(e){const t="fetch-body-resolved";(0,c.s5)(t,e),(0,c.AS)(t,()=>d(p))}function d(e,t=!1){t&&!(0,s.m7)()||(0,i.GS)(a.O,"fetch",function(t){return function(...n){const s=new Error,{method:u,url:l}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:h(t),method:f(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:h(t),method:f(t,"method")?String(t.method).toUpperCase():"GET"}}(n),d={args:n,fetchData:{method:u,url:l},startTimestamp:1e3*(0,o.zf)(),virtualError:s,headers:m(n)};return e||(0,c.aj)("fetch",{...d}),t.apply(a.O,n).then(async t=>(e?e(t):(0,c.aj)("fetch",{...d,endTimestamp:1e3*(0,o.zf)(),response:t}),t),e=>{if((0,c.aj)("fetch",{...d,endTimestamp:1e3*(0,o.zf)(),error:e}),(0,r.bJ)(e)&&void 0===e.stack&&(e.stack=s.stack,(0,i.my)(e,"framesToPop",1)),e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(d.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})}function p(e){let t;try{t=e.clone()}catch{return}!async function(e,t){if(e?.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4);let s=!0;for(;s;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:i}=await r.read();clearTimeout(e),i&&(t(),s=!1)}catch(e){s=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}(t,()=>{(0,c.aj)("fetch-body-resolved",{endTimestamp:1e3*(0,o.zf)(),response:e})})}function f(e,t){return!!e&&"object"==typeof e&&!!e[t]}function h(e){return"string"==typeof e?e:e?f(e,"url")?e.url:e.toString?e.toString():"":""}function m(e){const[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,r.ks)(t))return new Headers(t.headers)}catch{}}},94911:(e,t,n)=>{"use strict";n.d(t,{NI:()=>m,Ht:()=>h,Gx:()=>f});var r=n(22599);const i="user_action_start",s={Normal:"normal",Critical:"critical"};var o=n(27520),a=n(45877),c=n(67542),u=n(19063),l=n(27840),d=class{constructor(){this.buffer=[]}addItem(e){this.buffer.push(e)}flushBuffer(e){if((0,l.Tn)(e))for(const t of this.buffer)e(t);this.buffer.length=0}size(){return this.buffer.length}},p=class extends r.c{constructor({name:e,parentId:t,trigger:n,transports:r,attributes:i,trackUserActionsExcludeItem:o,importance:c=s.Normal,pushEvent:u}){super(),this.name=e,this.attributes=i,this.id=(0,a.S)(),this.trigger=n,this.parentId=null!=t?t:this.id,this.trackUserActionsExcludeItem=o,this.importance=c,this._pushEvent=u,this._itemBuffer=new d,this._transports=r,this._state=0,this._start()}addItem(e){return 0===this._state&&(this._itemBuffer.addItem(e),!0)}_start(){this._state=0,0===this._state&&(this.startTime=(0,o.x3)(),this._startTimeMono=(0,o.AU)())}halt(){0===this._state&&(this._state=1,this.notify(this._state))}cancel(){0===this._state&&this._itemBuffer.flushBuffer(e=>{this._transports.execute(e)}),this._state=2,this.notify(this._state)}end(){if(2===this._state)return;const e=(0,o.x3)(),t=(0,o.AU)()-this._startTimeMono;this._state=3,this._itemBuffer.flushBuffer(e=>{if(function(e,t){return(null==t?void 0:t(e))||"measurement"===e.type&&"web-vitals"===e.payload.type}(e,this.trackUserActionsExcludeItem))return void this._transports.execute(e);const t=(0,u.A)((0,u.A)({},e),{},{payload:(0,u.A)((0,u.A)({},e.payload),{},{action:{parentId:this.id,name:this.name}})});this._transports.execute(t)}),this._state=3,this.notify(this._state),this._pushEvent("faro.user.action",(0,u.A)({userActionName:this.name,userActionStartTime:this.startTime.toString(),userActionEndTime:e.toString(),userActionDuration:t.toString(),userActionTrigger:this.trigger,userActionImportance:this.importance},(0,c.Ti)(this.attributes)),void 0,{timestampOverwriteMs:this.startTime,customPayloadTransformer:e=>(e.action={id:this.id,name:this.name},e)})}getState(){return this._state}};const f=new r.c;function h({transports:e,internalLogger:t,config:n,pushEvent:r}){var o;const a=null===(o=n.userActionsInstrumentation)||void 0===o?void 0:o.excludeItem;
2let c;const u=()=>c;return{startUserAction:(n,o,l)=>{if(void 0===u()){const t=new p({name:n,transports:e,attributes:o,trigger:(null==l?void 0:l.triggerName)||"faroApiCall",importance:(null==l?void 0:l.importance)||s.Normal,trackUserActionsExcludeItem:a,pushEvent:r});return t.filter(e=>[3,2].includes(e)).first().subscribe(()=>{c=void 0}),f.notify({type:i,userAction:t,initialActivityTimeout:null==l?void 0:l.initialActivityTimeout}),c=t,c}t.error("Attempted to create a new user action while one is already running. This is not possible.")},getActiveUserAction:u}}function m(e,t){return!!e&&0===(null==e?void 0:e.getState())&&(e.addItem(t),!0)}},95497:(e,t,n)=>{"use strict";n.d(t,{L:()=>i,m:()=>o});var r=n(2339);function i(e){const t={};if("object"!=typeof e||null==e)return t;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(!s(n)){r.s.warn(`Invalid attribute key: ${n}`);continue}const i=e[n];o(i)?Array.isArray(i)?t[n]=i.slice():t[n]=i:r.s.warn(`Invalid attribute value set for key: ${n}`)}return t}function s(e){return"string"==typeof e&&""!==e}function o(e){return null==e||(Array.isArray(e)?function(e){let t;for(const n of e){if(null==n)continue;const e=typeof n;if(e!==t){if(!t){if(a(e)){t=e;continue}return!1}return!1}}return!0}(e):a(typeof e))}function a(e){switch(e){case"number":case"boolean":case"string":return!0}return!1}},98902:(e,t,n)=>{"use strict";function r(e){return Symbol.for(e)}n.d(t,{l:()=>s,n:()=>r});class i{constructor(e){const t=this;t._currentContext=e?new Map(e):new Map,t.getValue=e=>t._currentContext.get(e),t.setValue=(e,n)=>{const r=new i(t._currentContext);return r._currentContext.set(e,n),r},t.deleteValue=e=>{const n=new i(t._currentContext);return n._currentContext.delete(e),n}}}const s=new i},99408:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});const r="2.11.0"}}]);
3//# sourceMappingURL=5848.myeroad.63cd7fba95e4b51f49e7.js.map

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.