Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@grafana/faro-web-sdk

Package Overview
Dependencies
Maintainers
19
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grafana/faro-web-sdk - npm Package Compare versions

Comparing version 1.0.2 to 1.0.4

5

./dist/cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFunction = exports.isEventDefined = exports.isEvent = exports.isErrorEvent = exports.isErrorDefined = exports.isError = exports.isElementDefined = exports.isElement = exports.isDomException = exports.isDomError = exports.isBoolean = exports.isArray = exports.internalGlobalObjectKey = exports.globalObject = exports.getTransportBody = exports.getInternalFaroFromGlobalObject = exports.getCurrentTimestamp = exports.genShortID = exports.defaultLogLevel = exports.defaultInternalLoggerLevel = exports.defaultGlobalObjectKey = exports.defaultExceptionType = exports.deepEqual = exports.createPromiseBuffer = exports.createInternalLogger = exports.Conventions = exports.BaseTransport = exports.BaseInstrumentation = exports.BaseExtension = exports.allLogLevels = exports.faro = exports.FetchTransport = exports.ConsoleTransport = exports.pageMeta = exports.defaultViewMeta = exports.defaultMetas = exports.createSession = exports.browserMeta = exports.WebVitalsInstrumentation = exports.ViewInstrumentation = exports.parseStacktrace = exports.getStackFramesFromError = exports.getDataFromSafariExtensions = exports.ErrorsInstrumentation = exports.ConsoleInstrumentation = exports.buildStackFrame = exports.initializeFaro = exports.defaultEventDomain = exports.makeCoreConfig = exports.getWebInstrumentations = void 0;
exports.VERSION = exports.transportItemTypeToBodyKey = exports.TransportItemType = exports.setInternalFaroOnGlobalObject = exports.noop = exports.LogLevel = exports.InternalLoggerLevel = exports.isUndefined = exports.isTypeof = exports.isToString = exports.isThenable = exports.isSyntheticEvent = exports.isSymbol = exports.isString = exports.isRegExp = exports.isPrimitive = exports.isObject = exports.isNumber = exports.isNull = exports.isMapDefined = exports.isMap = exports.isInternalFaroOnGlobalObject = exports.isInt = exports.isInstanceOf = void 0;
exports.isEventDefined = exports.isEvent = exports.isErrorEvent = exports.isErrorDefined = exports.isError = exports.isElementDefined = exports.isElement = exports.isDomException = exports.isDomError = exports.isBoolean = exports.isArray = exports.internalGlobalObjectKey = exports.globalObject = exports.getTransportBody = exports.getInternalFaroFromGlobalObject = exports.getCurrentTimestamp = exports.genShortID = exports.defaultLogLevel = exports.defaultInternalLoggerLevel = exports.defaultGlobalObjectKey = exports.defaultExceptionType = exports.deepEqual = exports.createPromiseBuffer = exports.createInternalLogger = exports.Conventions = exports.BaseTransport = exports.BaseInstrumentation = exports.BaseExtension = exports.allLogLevels = exports.faro = exports.FetchTransport = exports.ConsoleTransport = exports.pageMeta = exports.defaultViewMeta = exports.defaultMetas = exports.createSession = exports.browserMeta = exports.SessionInstrumentation = exports.WebVitalsInstrumentation = exports.ViewInstrumentation = exports.parseStacktrace = exports.getStackFramesFromError = exports.getDataFromSafariExtensions = exports.ErrorsInstrumentation = exports.ConsoleInstrumentation = exports.buildStackFrame = exports.initializeFaro = exports.defaultEventDomain = exports.makeCoreConfig = exports.getWebInstrumentations = void 0;
exports.VERSION = exports.transportItemTypeToBodyKey = exports.TransportItemType = exports.setInternalFaroOnGlobalObject = exports.noop = exports.LogLevel = exports.InternalLoggerLevel = exports.isUndefined = exports.isTypeof = exports.isToString = exports.isThenable = exports.isSyntheticEvent = exports.isSymbol = exports.isString = exports.isRegExp = exports.isPrimitive = exports.isObject = exports.isNumber = exports.isNull = exports.isMapDefined = exports.isMap = exports.isInternalFaroOnGlobalObject = exports.isInt = exports.isInstanceOf = exports.isFunction = void 0;
var config_1 = require("./config");

@@ -21,2 +21,3 @@ Object.defineProperty(exports, "getWebInstrumentations", { enumerable: true, get: function () { return config_1.getWebInstrumentations; } });

Object.defineProperty(exports, "WebVitalsInstrumentation", { enumerable: true, get: function () { return instrumentations_1.WebVitalsInstrumentation; } });
Object.defineProperty(exports, "SessionInstrumentation", { enumerable: true, get: function () { return instrumentations_1.SessionInstrumentation; } });
var metas_1 = require("./metas");

@@ -23,0 +24,0 @@ Object.defineProperty(exports, "browserMeta", { enumerable: true, get: function () { return metas_1.browserMeta; } });

2

dist/bundle/faro-web-sdk.iife.js

@@ -1,1 +0,1 @@

var GrafanaFaroWebSdk=function(e){"use strict";function n(e,n){return typeof e===n}function t(e,n){return Object.prototype.toString.call(e)===`[object ${n}]`}function i(e,n){try{return e instanceof n}catch(e){return!1}}const r=e=>n(e,"undefined"),o=e=>n(e,"null"),a=e=>n(e,"string"),s=e=>n(e,"number")&&!isNaN(e)||n(e,"bigint"),u=e=>!o(e)&&n(e,"object"),l=e=>n(e,"function"),c=e=>t(e,"Array"),d=e=>!u(e)&&!l(e),p=!r(Event),f=e=>p&&i(e,Event),g="undefined"!=typeof Error,b=e=>g&&i(e,Error),m=e=>t(e,"ErrorEvent"),v=e=>t(e,"DOMError"),h=e=>t(e,"DOMException"),w="undefined"!=typeof Element,y="undefined"!=typeof Map;function E(e,t){if(e===t)return!0;if(n(e,"number")&&isNaN(e))return n(t,"number")&&isNaN(t);const i=c(e),r=c(t);if(i!==r)return!1;if(i&&r){const n=e.length;if(n!==t.length)return!1;for(let i=n;0!=i--;)if(!E(e[i],t[i]))return!1;return!0}const o=u(e),a=u(t);if(o!==a)return!1;if(e&&t&&o&&a){const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let e of n)if(!i.includes(e))return!1;for(let i of n)if(!E(e[i],t[i]))return!1;return!0}return!1}function x(){return(new Date).toISOString()}var k;e.LogLevel=void 0,(k=e.LogLevel||(e.LogLevel={})).TRACE="trace",k.DEBUG="debug",k.INFO="info",k.LOG="log",k.WARN="warn",k.ERROR="error";const T=e.LogLevel.LOG,L=[e.LogLevel.TRACE,e.LogLevel.DEBUG,e.LogLevel.INFO,e.LogLevel.LOG,e.LogLevel.WARN,e.LogLevel.ERROR];function S(){}function O(e){const{size:n,concurrency:t}=e,i=[];let r=0;const o=()=>{if(r<t&&i.length){const{producer:e,resolve:n,reject:t}=i.shift();r++,e().then((e=>{r--,o(),n(e)}),(e=>{r--,o(),t(e)}))}};return{add:e=>{if(i.length+r>=n)throw new Error("Task buffer full");return new Promise(((n,t)=>{i.push({producer:e,resolve:n,reject:t}),o()}))}}}const I="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789";function N(e=10){return Array.from(Array(e)).map((()=>I[Math.floor(Math.random()*I.length)])).join("")}var C;e.TransportItemType=void 0,(C=e.TransportItemType||(e.TransportItemType={})).EXCEPTION="exception",C.LOG="log",C.MEASUREMENT="measurement",C.TRACE="trace",C.EVENT="event";const A={[e.TransportItemType.EXCEPTION]:"exceptions",[e.TransportItemType.LOG]:"logs",[e.TransportItemType.MEASUREMENT]:"measurements",[e.TransportItemType.TRACE]:"traces",[e.TransportItemType.EVENT]:"events"};function R(n){return t=>{if(t.type===e.TransportItemType.EXCEPTION&&t.payload){const e=t.payload,i=`${e.type}: ${e.value}`;if(function(e,n){return e.some((e=>a(e)?n.includes(e):!!n.match(e)))}(n,i))return null}return t}}var j;e.InternalLoggerLevel=void 0,(j=e.InternalLoggerLevel||(e.InternalLoggerLevel={}))[j.OFF=0]="OFF",j[j.ERROR=1]="ERROR",j[j.WARN=2]="WARN",j[j.INFO=3]="INFO",j[j.VERBOSE=4]="VERBOSE";const D={debug:S,error:S,info:S,prefix:"Faro",warn:S},P=e.InternalLoggerLevel.ERROR,z=Object.assign({},console);let M=z;function F(e){var n;return M=null!==(n=e.unpatchedConsole)&&void 0!==n?n:M,M}function _(n=z,t=P){const i=D;return t>e.InternalLoggerLevel.OFF&&(i.error=t>=e.InternalLoggerLevel.ERROR?function(...e){n.error(`${i.prefix}\n`,...e)}:S,i.warn=t>=e.InternalLoggerLevel.WARN?function(...e){n.warn(`${i.prefix}\n`,...e)}:S,i.info=t>=e.InternalLoggerLevel.INFO?function(...e){n.info(`${i.prefix}\n`,...e)}:S,i.debug=t>=e.InternalLoggerLevel.VERBOSE?function(...e){n.debug(`${i.prefix}\n`,...e)}:S),i}let $=D;function B(e,n){return $=_(e,n.internalLoggerLevel),$}class U{constructor(){this.unpatchedConsole=z,this.internalLogger=D,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)}}class q extends U{getIgnoreUrls(){return[]}}function V(n){return{[A[n.type]]:n.type===e.TransportItemType.TRACE?n.payload:[n.payload],meta:n.meta}}const G="Error";let W;function K(n,t,i,r,a){t.debug("Initializing API");const s=function(n,t,i,r,o){let a;return t.debug("Initializing traces API"),{getOTEL:()=>a,getTraceContext:()=>{const e=null==a?void 0:a.trace.getSpanContext(a.context.active());return e?{trace_id:e.traceId,span_id:e.spanId}:void 0},initOTEL:(e,n)=>{t.debug("Initializing OpenTelemetry"),a={trace:e,context:n}},isOTELInitialized:()=>!!a,pushTraces:n=>{try{const i={type:e.TransportItemType.TRACE,payload:n,meta:r.value};t.debug("Pushing trace\n",i),o.execute(i)}catch(e){t.error("Error pushing trace\n",e)}}}}(0,t,0,r,a);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s),function(n,t,i,r,a,s){var u;t.debug("Initializing exceptions API");let l=null;W=null!==(u=i.parseStacktrace)&&void 0!==u?u:W;const c=e=>{t.debug("Changing stacktrace parser"),W=null!=e?e:W};return c(i.parseStacktrace),{changeStacktraceParser:c,getStacktraceParser:()=>W,pushError:(n,{skipDedupe:u,stackFrames:c,type:d}={})=>{d=d||n.name||G;const p={meta:r.value,payload:{type:d,value:n.message,timestamp:x(),trace:s.getTraceContext()},type:e.TransportItemType.EXCEPTION};(null==(c=null!=c?c:n.stack?null==W?void 0:W(n).frames:void 0)?void 0:c.length)&&(p.payload.stacktrace={frames:c});const f={type:p.payload.type,value:p.payload.value,stackTrace:p.payload.stacktrace};u||!i.dedupe||o(l)||!E(f,l)?(l=f,t.debug("Pushing exception\n",p),a.execute(p)):t.debug("Skipping error push because it is the same as the last one\n",p.payload)}}}(0,t,i,r,a,s)),function(e,n,t,i,r){let o,a,s;n.debug("Initializing meta API");const u=e=>{a&&i.remove(a),a={user:e},i.add(a)},l=e=>{o&&i.remove(o),o={session:e},i.add(o)};return{setUser:u,resetUser:u,setSession:l,resetSession:l,getSession:()=>i.value.session,setView:e=>{s&&i.remove(s),s={view:e},i.add(s)},getView:()=>i.value.view}}(0,t,0,r)),function(n,t,i,r,a,s){t.debug("Initializing logs API");let u=null;return{pushLog:(n,{context:l,level:c,skipDedupe:d}={})=>{try{const p={type:e.TransportItemType.LOG,payload:{message:n.map((e=>{try{return String(e)}catch(e){return""}})).join(" "),level:null!=c?c:T,context:null!=l?l:{},timestamp:x(),trace:s.getTraceContext()},meta:r.value},f={message:p.payload.message,level:p.payload.level,context:p.payload.context};if(!d&&i.dedupe&&!o(u)&&E(f,u))return void t.debug("Skipping log push because it is the same as the last one\n",p.payload);u=f,t.debug("Pushing log\n",p),a.execute(p)}catch(e){t.error("Error pushing log\n",e)}}}}(0,t,i,r,a,s)),function(n,t,i,r,a,s){t.debug("Initializing measurements API");let u=null;return{pushMeasurement:(n,{skipDedupe:l}={})=>{var c;try{const d={type:e.TransportItemType.MEASUREMENT,payload:Object.assign(Object.assign({},n),{trace:s.getTraceContext(),timestamp:null!==(c=n.timestamp)&&void 0!==c?c:x()}),meta:r.value},p={type:d.payload.type,values:d.payload.values};if(!l&&i.dedupe&&!o(u)&&E(p,u))return void t.debug("Skipping measurement push because it is the same as the last one\n",d.payload);u=p,t.debug("Pushing measurement\n",d),a.execute(d)}catch(e){t.error("Error pushing measurement\n",e)}}}}(0,t,i,r,a,s)),function(n,t,i,r,a,s){let u=null;return{pushEvent:(n,l,c,{skipDedupe:d}={})=>{try{const p={meta:r.value,payload:{name:n,domain:null!=c?c:i.eventDomain,attributes:l,timestamp:x(),trace:s.getTraceContext()},type:e.TransportItemType.EVENT},f={name:p.payload.name,attributes:p.payload.attributes,domain:p.payload.domain};if(!d&&i.dedupe&&!o(u)&&E(f,u))return void t.debug("Skipping event push because it is the same as the last one\n",p.payload);u=f,t.debug("Pushing event\n",p),a.execute(p)}catch(e){t.error("Error pushing event",e)}}}}(0,t,i,r,a,s))}const H="undefined"==typeof window?global:window;class X extends U{constructor(){super(...arguments),this.api={},this.transports={}}}const Z="1.0.2";const J="_faroInternal";function Q(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(H,J,{configurable:!1,enumerable:!1,writable:!1,value:e}))}function Y(){return J in H}function ee(n,t,i,r,o,a,s){return t.debug("Initializing Faro"),e.faro={api:a,config:i,instrumentations:s,internalLogger:t,metas:r,pause:o.pause,transports:o,unpatchedConsole:n,unpause:o.unpause},Q(e.faro),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 H)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(H,e.config.globalObjectKey,{configurable:!1,writable:!1,value:e})}}(e.faro),e.faro}function ne(e){const n=F(e),t=B(n,e);if(Y()&&!e.isolate)return void t.error('Faro is already registered. Either add instrumentations, transports etc. to the global faro instance or use the "isolate" property');t.debug("Initializing");const i=function(e,n,t){let i=[],r=[];const o=()=>i.reduce(((e,n)=>Object.assign(e,l(n)?n():n)),{}),a=()=>{if(r.length){const e=o();r.forEach((n=>n(e)))}};return{add:(...e)=>{n.debug("Adding metas\n",e),i.push(...e),a()},remove:(...e)=>{n.debug("Removing metas\n",e),i=i.filter((n=>!e.includes(n))),a()},addListener:e=>{n.debug("Adding metas listener\n",e),r.push(e)},removeListener:e=>{n.debug("Removing metas listener\n",e),r=r.filter((n=>n!==e))},get value(){return o()}}}(0,t),r=function(e,n,t,i){n.debug("Initializing transports");const r=[];let o=t.paused,a=[];return{add:(...o)=>{n.debug("Adding transports"),o.forEach((o=>{n.debug(`Adding "${o.name}" transport`),r.some((e=>e===o))?n.warn(`Transport ${o.name} is already added`):(o.unpatchedConsole=e,o.internalLogger=n,o.config=t,o.metas=i,r.push(o))}))},addBeforeSendHooks:(...e)=>{n.debug("Adding beforeSendHooks\n",a),e.forEach((e=>{e&&a.push(e)}))},addIgnoreErrorsPatterns:(...e)=>{n.debug("Adding ignoreErrorsPatterns\n",e),e.forEach((e=>{e&&a.push(R(e))}))},getBeforeSendHooks:()=>[...a],execute:e=>{if(!o){let t=e;for(const e of a){const n=e(t);if(null===n)return;t=n}for(const e of r)n.debug(`Transporting item using ${e.name}\n`,t),e.send(t)}},isPaused:()=>o,pause:()=>{n.debug("Pausing transports"),o=!0},remove:(...e)=>{n.debug("Removing transports"),e.forEach((e=>{n.debug(`Removing "${e.name}" transport`);const t=r.indexOf(e);-1!==t?r.splice(t,1):n.warn(`Transport "${e.name}" is not added`)}))},removeBeforeSendHooks:(...e)=>{a.filter((n=>!e.includes(n)))},get transports(){return[...r]},unpause:()=>{n.debug("Unpausing transports"),o=!1}}}(n,t,e,i),o=K(0,t,e,i,r),a=function(e,n,t,i,r,o){n.debug("Initializing instrumentations");const a=[];return{add:(...s)=>{n.debug("Adding instrumentations"),s.forEach((s=>{n.debug(`Adding "${s.name}" instrumentation`),a.some((e=>e.name===s.name))?n.warn(`Instrumentation ${s.name} is already added`):(s.unpatchedConsole=e,s.internalLogger=n,s.config=t,s.metas=i,s.transports=r,s.api=o,a.push(s),s.initialize())}))},get instrumentations(){return[...a]},remove:(...e)=>{n.debug("Removing instrumentations"),e.forEach((e=>{var t,i;n.debug(`Removing "${e.name}" instrumentation`);const r=a.reduce(((n,t,i)=>null===n&&t.name===e.name?i:null),null);r?(null===(i=(t=a[r]).destroy)||void 0===i||i.call(t),a.splice(r,1)):n.warn(`Instrumentation "${e.name}" is not added`)}))}}}(n,t,e,i,r,o),s=ee(n,t,e,i,r,o,a);return function(e){var n;const t={sdk:{name:"@grafana/faro-core",version:Z,integrations:e.config.instrumentations.map((({name:e,version:n})=>({name:e,version:n})))}};e.config.session&&e.api.setSession(e.config.session),e.config.app&&(t.app=e.config.app),e.config.user&&(t.user=e.config.user),e.config.view&&(t.view=e.config.view),e.metas.add(t,...null!==(n=e.config.metas)&&void 0!==n?n:[])}(s),function(e){e.transports.add(...e.config.transports),e.transports.addBeforeSendHooks(e.config.beforeSend),e.transports.addIgnoreErrorsPatterns(e.config.ignoreErrors)}(s),function(e){e.instrumentations.add(...e.config.instrumentations)}(s),s}e.faro={};const te="faro",ie={EventNames:{CLICK:"click",NAVIGATION:"navigation",SESSION_START:"session_start",VIEW_CHANGED:"view_changed"}};class re extends X{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-session",this.version=Z}sendSessionStartEvent(e){const n=e.session;n&&n!==this.notifiedSession&&(this.notifiedSession=n,this.api.pushEvent(ie.EventNames.SESSION_START,{},void 0,{skipDedupe:!0}))}initialize(){this.sendSessionStartEvent(this.metas.value),this.metas.addListener(this.sendSessionStartEvent.bind(this))}}class oe extends X{constructor(e={}){super(),this.options=e,this.name="@grafana/faro-web-sdk:instrumentation-console",this.version=Z}initialize(){this.logDebug("Initializing\n",this.options),L.filter((e=>{var n;return!(null!==(n=this.options.disabledLevels)&&void 0!==n?n:oe.defaultDisabledLevels).includes(e)})).forEach((e=>{console[e]=(...n)=>{try{this.api.pushLog(n,{level:e})}catch(e){this.logError(e)}finally{this.unpatchedConsole[e](...n)}}}))}}oe.defaultDisabledLevels=[e.LogLevel.DEBUG,e.LogLevel.TRACE,e.LogLevel.LOG];const ae=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,se=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ue=/\((\S*)(?::(\d+))(?::(\d+))\)/,le="address at ",ce=le.length,de=/^\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,pe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,fe="safari-extension",ge="safari-web-extension",be=/Minified React error #\d+;/i;function me(e,n,t,i){const r={filename:e||document.location.href,function:n||"?"};return void 0!==t&&(r.lineno=t),void 0!==i&&(r.colno=i),r}function ve(e,n){const t=null==e?void 0:e.includes(fe),i=!t&&(null==e?void 0:e.includes(ge));return t||i?[(null==e?void 0:e.includes("@"))?e.split("@")[0]:e,t?`${fe}:${n}`:`${ge}:${n}`]:[e,n]}function he(e){let n=[];e.stacktrace?n=e.stacktrace.split("\n").filter(((e,n)=>n%2==0)):e.stack&&(n=e.stack.split("\n"));const t=n.reduce(((n,t,i)=>{let r,o,a,u,l;if(r=se.exec(t)){if(o=r[1],a=r[2],u=r[3],l=r[4],null==a?void 0:a.startsWith("eval")){const e=ue.exec(a);e&&(a=e[1],u=e[2],l=e[3])}a=(null==a?void 0:a.startsWith(le))?a.substring(ce):a,[o,a]=ve(o,a)}else if(r=de.exec(t)){if(o=r[1],a=r[3],u=r[4],l=r[5],a&&a.includes(" > eval")){const e=pe.exec(a);e&&(o=o||"eval",a=e[1],u=e[2])}else 0===i&&!l&&s(e.columnNumber)&&(l=String(e.columnNumber+1));[o,a]=ve(o,a)}return(a||o)&&n.push(me(a,o,u?Number(u):void 0,l?Number(l):void 0)),n}),[]);return be.test(e.message)?t.slice(1):t}function we(e){return{frames:he(e)}}function ye(e){let n,t,i,r,o=[];if(m(e)&&e.error)n=e.error.message,t=e.error.name,o=he(e.error);else if((i=v(e))||h(e)){const{name:r,message:o}=e;t=null!=r?r:i?"DOMError":"DOMException",n=o?`${t}: ${o}`:t}else b(e)?(n=e.message,o=he(e)):(u(e)||(r=f(e)))&&(t=r?e.constructor.name:void 0,n=`Non-Error exception captured with keys: ${Object.keys(e)}`);return[n,t,o]}function Ee(e){const n=window.onerror;window.onerror=(...t)=>{try{const[i,r,o,s,u]=t;let l,c,d=[];const p=a(i),f=me(r,"?",o,s);u||!p?([l,c,d]=ye(null!=u?u:i),0===d.length&&(d=[f])):p&&([l,c]=function(e){var n,t;const i=e.match(ae),r=null!==(n=null==i?void 0:i[1])&&void 0!==n?n:G;return[null!==(t=null==i?void 0:i[2])&&void 0!==t?t:e,r]}(i),d=[f]),l&&e.pushError(new Error(l),{type:c,stackFrames:d})}finally{null==n||n.apply(window,t)}}}class xe extends X{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-errors",this.version=Z}initialize(){var e;this.logDebug("Initializing"),Ee(this.api),e=this.api,window.addEventListener("unhandledrejection",(n=>{var t,i;let r,o,a=n;a.reason?a=n.reason:(null===(t=n.detail)||void 0===t?void 0:t.reason)&&(a=null===(i=n.detail)||void 0===i?void 0:i.reason),d(a)?(r=`Non-Error promise rejection captured with value: ${String(a)}`,o="UnhandledRejection"):[r,o]=ye(a),r&&e.pushError(new Error(r),{type:o})}))}}class ke extends X{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-view",this.version=Z}sendViewChangedEvent(e){const n=e.view;n&&n!==this.notifiedView&&(this.notifiedView=n,this.api.pushEvent(ie.EventNames.VIEW_CHANGED,{},void 0,{skipDedupe:!0}))}initialize(){this.sendViewChangedEvent(this.metas.value),this.metas.addListener(this.sendViewChangedEvent.bind(this))}}var Te,Le,Se,Oe,Ie,Ne=-1,Ce=function(e){addEventListener("pageshow",(function(n){n.persisted&&(Ne=n.timeStamp,e(n))}),!0)},Ae=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Re=function(){var e=Ae();return e&&e.activationStart||0},je=function(e,n){var t=Ae(),i="navigate";return Ne>=0?i="back-forward-cache":t&&(i=document.prerendering||Re()>0?"prerender":document.wasDiscarded?"restore":t.type.replace(/_/g,"-")),{name:e,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},De=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return i.observe(Object.assign({type:e,buffered:!0},t||{})),i}}catch(e){}},Pe=function(e,n,t,i){var r,o;return function(a){n.value>=0&&(a||i)&&((o=n.value-(r||0))||void 0===r)&&(r=n.value,n.delta=o,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n))}},ze=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Me=function(e){var n=function(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||e(n)};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Fe=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},_e=-1,$e=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},Be=function(e){"hidden"===document.visibilityState&&_e>-1&&(_e="visibilitychange"===e.type?e.timeStamp:0,qe())},Ue=function(){addEventListener("visibilitychange",Be,!0),addEventListener("prerenderingchange",Be,!0)},qe=function(){removeEventListener("visibilitychange",Be,!0),removeEventListener("prerenderingchange",Be,!0)},Ve=function(){return _e<0&&(_e=$e(),Ue(),Ce((function(){setTimeout((function(){_e=$e(),Ue()}),0)}))),{get firstHiddenTime(){return _e}}},Ge=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},We=function(e,n){n=n||{},Ge((function(){var t,i=[1800,3e3],r=Ve(),o=je("FCP"),a=De("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<r.firstHiddenTime&&(o.value=Math.max(e.startTime-Re(),0),o.entries.push(e),t(!0)))}))}));a&&(t=Pe(e,o,i,n.reportAllChanges),Ce((function(r){o=je("FCP"),t=Pe(e,o,i,n.reportAllChanges),ze((function(){o.value=performance.now()-r.timeStamp,t(!0)}))})))}))},Ke={passive:!0,capture:!0},He=new Date,Xe=function(e,n){Te||(Te=n,Le=e,Se=new Date,Qe(removeEventListener),Ze())},Ze=function(){if(Le>=0&&Le<Se-He){var e={entryType:"first-input",name:Te.type,target:Te.target,cancelable:Te.cancelable,startTime:Te.timeStamp,processingStart:Te.timeStamp+Le};Oe.forEach((function(n){n(e)})),Oe=[]}},Je=function(e){if(e.cancelable){var n=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,n){var t=function(){Xe(e,n),r()},i=function(){r()},r=function(){removeEventListener("pointerup",t,Ke),removeEventListener("pointercancel",i,Ke)};addEventListener("pointerup",t,Ke),addEventListener("pointercancel",i,Ke)}(n,e):Xe(n,e)}},Qe=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(n){return e(n,Je,Ke)}))},Ye=0,en=1/0,nn=0,tn=function(e){e.forEach((function(e){e.interactionId&&(en=Math.min(en,e.interactionId),nn=Math.max(nn,e.interactionId),Ye=nn?(nn-en)/7+1:0)}))},rn=function(){return Ie?Ye:performance.interactionCount||0},on=function(){"interactionCount"in performance||Ie||(Ie=De("event",tn,{type:"event",buffered:!0,durationThreshold:0}))},an=0,sn=function(){return rn()-an},un=[],ln={},cn=function(e){var n=un[un.length-1],t=ln[e.interactionId];if(t||un.length<10||e.duration>n.latency){if(t)t.entries.push(e),t.latency=Math.max(t.latency,e.duration);else{var i={id:e.interactionId,latency:e.duration,entries:[e]};ln[i.id]=i,un.push(i)}un.sort((function(e,n){return n.latency-e.latency})),un.splice(10).forEach((function(e){delete ln[e.id]}))}},dn={},pn=function e(n){document.prerendering?Ge((function(){return e(n)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(n)}),!0):setTimeout(n,0)};class fn extends X{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-web-vitals",this.version=Z}initialize(){this.logDebug("Initializing"),Object.entries(fn.mapping).forEach((([e,n])=>{n((n=>{this.api.pushMeasurement({type:"web-vitals",values:{[e]:n.value}})}))}))}}function gn(e={}){const n=[new xe,new fn,new re,new ke];return!1!==e.captureConsole&&n.push(new oe({disabledLevels:e.captureConsoleDisabledLevels})),n}fn.mapping={cls:function(e,n){n=n||{},We(Fe((function(){var t,i=[.1,.25],r=je("CLS",0),o=0,a=[],s=function(e){e.forEach((function(e){if(!e.hadRecentInput){var n=a[0],t=a[a.length-1];o&&e.startTime-t.startTime<1e3&&e.startTime-n.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e])}})),o>r.value&&(r.value=o,r.entries=a,t())},u=De("layout-shift",s);u&&(t=Pe(e,r,i,n.reportAllChanges),Me((function(){s(u.takeRecords()),t(!0)})),Ce((function(){o=0,r=je("CLS",0),t=Pe(e,r,i,n.reportAllChanges),ze((function(){return t()}))})),setTimeout(t,0))})))},fcp:We,fid:function(e,n){n=n||{},Ge((function(){var t,i=[100,300],r=Ve(),o=je("FID"),a=function(e){e.startTime<r.firstHiddenTime&&(o.value=e.processingStart-e.startTime,o.entries.push(e),t(!0))},s=function(e){e.forEach(a)},u=De("first-input",s);t=Pe(e,o,i,n.reportAllChanges),u&&Me(Fe((function(){s(u.takeRecords()),u.disconnect()}))),u&&Ce((function(){var r;o=je("FID"),t=Pe(e,o,i,n.reportAllChanges),Oe=[],Le=-1,Te=null,Qe(addEventListener),r=a,Oe.push(r),Ze()}))}))},inp:function(e,n){n=n||{},Ge((function(){var t=[200,500];on();var i,r=je("INP"),o=function(e){e.forEach((function(e){e.interactionId&&cn(e),"first-input"===e.entryType&&!un.some((function(n){return n.entries.some((function(n){return e.duration===n.duration&&e.startTime===n.startTime}))}))&&cn(e)}));var n,t=(n=Math.min(un.length-1,Math.floor(sn()/50)),un[n]);t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,i())},a=De("event",o,{durationThreshold:n.durationThreshold||40});i=Pe(e,r,t,n.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),Me((function(){o(a.takeRecords()),r.value<0&&sn()>0&&(r.value=0,r.entries=[]),i(!0)})),Ce((function(){un=[],an=rn(),r=je("INP"),i=Pe(e,r,t,n.reportAllChanges)})))}))},lcp:function(e,n){n=n||{},Ge((function(){var t,i=[2500,4e3],r=Ve(),o=je("LCP"),a=function(e){var n=e[e.length-1];if(n){var i=Math.max(n.startTime-Re(),0);i<r.firstHiddenTime&&(o.value=i,o.entries=[n],t())}},s=De("largest-contentful-paint",a);if(s){t=Pe(e,o,i,n.reportAllChanges);var u=Fe((function(){dn[o.id]||(a(s.takeRecords()),s.disconnect(),dn[o.id]=!0,t(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,u,!0)})),Me(u),Ce((function(r){o=je("LCP"),t=Pe(e,o,i,n.reportAllChanges),ze((function(){o.value=performance.now()-r.timeStamp,dn[o.id]=!0,t(!0)}))}))}}))},ttfb:function(e,n){n=n||{};var t=[800,1800],i=je("TTFB"),r=Pe(e,i,t,n.reportAllChanges);pn((function(){var o=Ae();if(o){var a=o.responseStart;if(a<=0||a>performance.now())return;i.value=Math.max(a-Re(),0),i.entries=[o],r(!0),Ce((function(){i=je("TTFB",0),(r=Pe(e,i,t,n.reportAllChanges))(!0)}))}}))}};const bn="browser";var mn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},vn={},hn={get exports(){return vn},set exports(e){vn=e}};!function(e,n){!function(t,i){var r="function",o="undefined",a="object",s="string",u="model",l="name",c="type",d="vendor",p="version",f="architecture",g="console",b="mobile",m="tablet",v="smarttv",h="wearable",w="embedded",y="Amazon",E="Apple",x="ASUS",k="BlackBerry",T="Browser",L="Chrome",S="Firefox",O="Google",I="Huawei",N="LG",C="Microsoft",A="Motorola",R="Opera",j="Samsung",D="Sharp",P="Sony",z="Xiaomi",M="Zebra",F="Facebook",_=function(e){for(var n={},t=0;t<e.length;t++)n[e[t].toUpperCase()]=e[t];return n},$=function(e,n){return typeof e===s&&-1!==B(n).indexOf(B(e))},B=function(e){return e.toLowerCase()},U=function(e,n){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof n===o?e:e.substring(0,350)},q=function(e,n){for(var t,o,s,u,l,c,d=0;d<n.length&&!l;){var p=n[d],f=n[d+1];for(t=o=0;t<p.length&&!l;)if(l=p[t++].exec(e))for(s=0;s<f.length;s++)c=l[++o],typeof(u=f[s])===a&&u.length>0?2===u.length?typeof u[1]==r?this[u[0]]=u[1].call(this,c):this[u[0]]=u[1]:3===u.length?typeof u[1]!==r||u[1].exec&&u[1].test?this[u[0]]=c?c.replace(u[1],u[2]):i:this[u[0]]=c?u[1].call(this,c,u[2]):i:4===u.length&&(this[u[0]]=c?u[3].call(this,c.replace(u[1],u[2])):i):this[u]=c||i;d+=2}},V=function(e,n){for(var t in n)if(typeof n[t]===a&&n[t].length>0){for(var r=0;r<n[t].length;r++)if($(n[t][r],e))return"?"===t?i:t}else if($(n[t],e))return"?"===t?i:t;return e},G={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"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,p],[/opios[\/ ]+([\w\.]+)/i],[p,[l,R+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[l,R]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[l,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[l,"UC"+T]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[l,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[l,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[l,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+T],p],[/\bfocus\/([\w\.]+)/i],[p,[l,S+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[l,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[l,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[l,"MIUI "+T]],[/fxios\/([-\w\.]+)/i],[p,[l,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 "+T]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 "+T],p],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[l,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,F],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[l,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[l,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[l,L+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,L+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[l,"Android "+T]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[p,V,{"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],[l,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[l,S+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,B]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",B]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,B]]],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],[u,[d,j],[c,m]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[d,j],[c,b]],[/\((ip(?:hone|od)[\w ]*);/i],[u,[d,E],[c,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[d,E],[c,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[d,I],[c,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[d,I],[c,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[d,z],[c,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[d,z],[c,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[d,"OPPO"],[c,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[d,"Vivo"],[c,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[d,"Realme"],[c,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[d,A],[c,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[d,A],[c,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[d,N],[c,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[d,N],[c,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[d,"Lenovo"],[c,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[d,"Nokia"],[c,b]],[/(pixel c)\b/i],[u,[d,O],[c,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[d,O],[c,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],[u,[d,P],[c,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[d,P],[c,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[d,"OnePlus"],[c,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[d,y],[c,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[d,y],[c,b]],[/(playbook);[-\w\),; ]+(rim)/i],[u,d,[c,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[d,k],[c,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[d,x],[c,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[d,x],[c,b]],[/(nexus 9)/i],[u,[d,"HTC"],[c,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[u,/_/g," "],[c,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[d,"Acer"],[c,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[d,"Meizu"],[c,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[d,D],[c,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,u,[c,b]],[/(archos) (gamepad2?)/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],[d,u,[c,m]],[/(surface duo)/i],[u,[d,C],[c,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[d,"Fairphone"],[c,b]],[/(u304aa)/i],[u,[d,"AT&T"],[c,b]],[/\bsie-(\w*)/i],[u,[d,"Siemens"],[c,b]],[/\b(rct\w+) b/i],[u,[d,"RCA"],[c,m]],[/\b(venue[\d ]{2,7}) b/i],[u,[d,"Dell"],[c,m]],[/\b(q(?:mv|ta)\w+) b/i],[u,[d,"Verizon"],[c,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[d,"Barnes & Noble"],[c,m]],[/\b(tm\d{3}\w+) b/i],[u,[d,"NuVision"],[c,m]],[/\b(k88) b/i],[u,[d,"ZTE"],[c,m]],[/\b(nx\d{3}j) b/i],[u,[d,"ZTE"],[c,b]],[/\b(gen\d{3}) b.+49h/i],[u,[d,"Swiss"],[c,b]],[/\b(zur\d{3}) b/i],[u,[d,"Swiss"],[c,m]],[/\b((zeki)?tb.*\b) b/i],[u,[d,"Zeki"],[c,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],u,[c,m]],[/\b(ns-?\w{0,9}) b/i],[u,[d,"Insignia"],[c,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[d,"NextBook"],[c,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],u,[c,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],u,[c,b]],[/\b(ph-1) /i],[u,[d,"Essential"],[c,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[d,"Envizen"],[c,m]],[/\b(trio[-\w\. ]+) b/i],[u,[d,"MachSpeed"],[c,m]],[/\btu_(1491) b/i],[u,[d,"Rotor"],[c,m]],[/(shield[\w ]+) b/i],[u,[d,"Nvidia"],[c,m]],[/(sprint) (\w+)/i],[d,u,[c,b]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[d,C],[c,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[d,M],[c,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[d,M],[c,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,u,[c,g]],[/droid.+; (shield) bui/i],[u,[d,"Nvidia"],[c,g]],[/(playstation [345portablevi]+)/i],[u,[d,P],[c,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[d,C],[c,g]],[/smart-tv.+(samsung)/i],[d,[c,v]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[d,j],[c,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,N],[c,v]],[/(apple) ?tv/i],[d,[u,E+" TV"],[c,v]],[/crkey/i],[[u,L+"cast"],[d,O],[c,v]],[/droid.+aft(\w)( bui|\))/i],[u,[d,y],[c,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[d,D],[c,v]],[/(bravia[\w ]+)( bui|\))/i],[u,[d,P],[c,v]],[/(mitv-\w{5}) bui/i],[u,[d,z],[c,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,U],[u,U],[c,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,v]],[/((pebble))app/i],[d,u,[c,h]],[/droid.+; (glass) \d/i],[u,[d,O],[c,h]],[/droid.+; (wt63?0{2,3})\)/i],[u,[d,M],[c,h]],[/(quest( 2)?)/i],[u,[d,F],[c,h]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[c,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[c,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[c,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,b]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[l,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[l,[p,V,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,"Windows"],[p,V,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,p],[/\(bb(10);/i],[p,[l,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[l,S+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[l,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[l,L+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[l,"Chromium OS"],p],[/(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) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,p],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[l,p]]},K=function(e,n){if(typeof e===a&&(n=e,e=i),!(this instanceof K))return new K(e,n).getResult();var r=e||(typeof t!==o&&t.navigator&&t.navigator.userAgent?t.navigator.userAgent:""),g=n?function(e,n){var t={};for(var i in e)n[i]&&n[i].length%2==0?t[i]=n[i].concat(e[i]):t[i]=e[i];return t}(W,n):W;return this.getBrowser=function(){var e,n={};return n[l]=i,n[p]=i,q.call(n,r,g.browser),n.major=typeof(e=n.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:i,n},this.getCPU=function(){var e={};return e[f]=i,q.call(e,r,g.cpu),e},this.getDevice=function(){var e={};return e[d]=i,e[u]=i,e[c]=i,q.call(e,r,g.device),e},this.getEngine=function(){var e={};return e[l]=i,e[p]=i,q.call(e,r,g.engine),e},this.getOS=function(){var e={};return e[l]=i,e[p]=i,q.call(e,r,g.os),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===s&&e.length>350?U(e,350):e,this},this.setUA(r),this};K.VERSION="1.0.32",K.BROWSER=_([l,p,"major"]),K.CPU=_([f]),K.DEVICE=_([u,d,c,g,b,v,m,h,w]),K.ENGINE=K.OS=_([l,p]),e.exports&&(n=e.exports=K),n.UAParser=K;var H=typeof t!==o&&(t.jQuery||t.Zepto);if(H&&!H.ua){var X=new K;H.ua=X.getResult(),H.ua.get=function(){return X.getUA()},H.ua.set=function(e){X.setUA(e);var n=X.getResult();for(var t in n)H.ua[t]=n[t]}}}("object"==typeof window?window:mn)}(hn,vn);const wn=()=>{const e=new vn.UAParser,{name:n,version:t}=e.getBrowser(),{name:i,version:r}=e.getOS(),o=e.getUA(),a=navigator.language,s="unknown";return{browser:{name:null!=n?n:s,version:null!=t?t:s,os:`${null!=i?i:s} ${null!=r?r:s}`,userAgent:null!=o?o:s,language:null!=a?a:s,mobile:navigator.userAgent.includes("Mobi")}}},yn=()=>({page:{url:location.href}}),En=[wn,yn];function xn(e){return{id:N(),attributes:e}}const kn={name:"default"};function Tn(e,n,t,i){return new(t||(t=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((i=i.apply(e,n||[])).next())}))}class Ln extends q{constructor(e){var n,t,i,r;super(),this.options=e,this.name="@grafana/faro-web-sdk:transport-fetch",this.version=Z,this.disabledUntil=new Date,this.rateLimitBackoffMs=null!==(n=e.defaultRateLimitBackoffMs)&&void 0!==n?n:5e3,this.getNow=null!==(t=e.getNow)&&void 0!==t?t:()=>Date.now(),this.promiseBuffer=O({size:null!==(i=e.bufferSize)&&void 0!==i?i:30,concurrency:null!==(r=e.concurrency)&&void 0!==r?r:5})}send(e){return Tn(this,void 0,void 0,(function*(){try{if(this.disabledUntil>new Date(this.getNow()))return this.logWarn(`Dropping transport item due to too many requests. Backoff until ${this.disabledUntil}`),Promise.resolve();yield this.promiseBuffer.add((()=>{const n=JSON.stringify(V(e)),{url:t,requestOptions:i,apiKey:r}=this.options,o=null!=i?i:{},{headers:a}=o,s=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}(o,["headers"]);return fetch(t,Object.assign({method:"POST",headers:Object.assign(Object.assign({"Content-Type":"application/json"},null!=a?a:{}),r?{"x-api-key":r}:{}),body:n,keepalive:!0},null!=s?s:{})).then((e=>(429===e.status&&(this.disabledUntil=this.getRetryAfterDate(e),this.logWarn(`Too many requests, backing off until ${this.disabledUntil}`)),e.text().catch(S),e))).catch((e=>{this.logError("Failed sending payload to the receiver\n",JSON.parse(n),e)}))}))}catch(e){this.logError(e)}}))}getIgnoreUrls(){return[this.options.url]}getRetryAfterDate(e){const n=this.getNow(),t=e.headers.get("Retry-After");if(t){const e=Number(t);if(!isNaN(e))return new Date(1e3*e+n);const i=Date.parse(t);if(!isNaN(i))return new Date(i)}return new Date(n+this.rateLimitBackoffMs)}}function Sn(e){var n,t,i,r,o,a,s,u,l,c,d;const p=[],f=_(e.unpatchedConsole,e.internalLoggerLevel);return e.transports?((e.url||e.apiKey)&&f.error('if "transports" is defined, "url" and "apiKey" should not be defined'),p.push(...e.transports)):e.url?p.push(new Ln({url:e.url,apiKey:e.apiKey})):f.error('either "url" or "transports" must be defined'),{app:e.app,dedupe:null===(n=e.dedupe)||void 0===n||n,globalObjectKey:e.globalObjectKey||te,instrumentations:null!==(t=e.instrumentations)&&void 0!==t?t:gn(),internalLoggerLevel:null!==(i=e.internalLoggerLevel)&&void 0!==i?i:P,isolate:null!==(r=e.isolate)&&void 0!==r&&r,metas:null!==(o=e.metas)&&void 0!==o?o:En,parseStacktrace:we,paused:null!==(a=e.paused)&&void 0!==a&&a,preventGlobalExposure:null!==(s=e.preventGlobalExposure)&&void 0!==s&&s,transports:p,unpatchedConsole:null!==(u=e.unpatchedConsole)&&void 0!==u?u:z,beforeSend:e.beforeSend,eventDomain:null!==(l=e.eventDomain)&&void 0!==l?l:bn,ignoreErrors:e.ignoreErrors,session:null!==(c=e.session)&&void 0!==c?c:xn(),user:e.user,view:null!==(d=e.view)&&void 0!==d?d:kn}}return e.BaseExtension=U,e.BaseInstrumentation=X,e.BaseTransport=q,e.ConsoleInstrumentation=oe,e.ConsoleTransport=class extends q{constructor(e={}){super(),this.options=e,this.name="@grafana/faro-web-sdk:transport-console",this.version=Z}send(n){var t;return this.unpatchedConsole[null!==(t=this.options.level)&&void 0!==t?t:e.LogLevel.DEBUG]("New event",V(n))}},e.Conventions=ie,e.ErrorsInstrumentation=xe,e.FetchTransport=Ln,e.VERSION=Z,e.ViewInstrumentation=ke,e.WebVitalsInstrumentation=fn,e.allLogLevels=L,e.browserMeta=wn,e.buildStackFrame=me,e.createInternalLogger=_,e.createPromiseBuffer=O,e.createSession=xn,e.deepEqual=E,e.defaultEventDomain=bn,e.defaultExceptionType=G,e.defaultGlobalObjectKey=te,e.defaultInternalLoggerLevel=P,e.defaultLogLevel=T,e.defaultMetas=En,e.defaultViewMeta=kn,e.genShortID=N,e.getCurrentTimestamp=x,e.getDataFromSafariExtensions=ve,e.getInternalFaroFromGlobalObject=function(){return H[J]},e.getStackFramesFromError=he,e.getTransportBody=V,e.getWebInstrumentations=gn,e.globalObject=H,e.initializeFaro=function(e){const n=Sn(e);if(n)return ne(n)},e.internalGlobalObjectKey=J,e.isArray=c,e.isBoolean=e=>n(e,"boolean"),e.isDomError=v,e.isDomException=h,e.isElement=e=>w&&i(e,Element),e.isElementDefined=w,e.isError=b,e.isErrorDefined=g,e.isErrorEvent=m,e.isEvent=f,e.isEventDefined=p,e.isFunction=l,e.isInstanceOf=i,e.isInt=e=>s(e)&&Number.isInteger(e),e.isInternalFaroOnGlobalObject=Y,e.isMap=e=>y&&i(e,Map),e.isMapDefined=y,e.isNull=o,e.isNumber=s,e.isObject=u,e.isPrimitive=d,e.isRegExp=e=>t(e,"RegExp"),e.isString=a,e.isSymbol=e=>n(e,"symbol"),e.isSyntheticEvent=e=>u(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e,e.isThenable=e=>l(null==e?void 0:e.then),e.isToString=t,e.isTypeof=n,e.isUndefined=r,e.makeCoreConfig=Sn,e.noop=S,e.pageMeta=yn,e.parseStacktrace=we,e.setInternalFaroOnGlobalObject=Q,e.transportItemTypeToBodyKey=A,e}({});
var GrafanaFaroWebSdk=function(e){"use strict";function n(e,n){return typeof e===n}function t(e,n){return Object.prototype.toString.call(e)===`[object ${n}]`}function i(e,n){try{return e instanceof n}catch(e){return!1}}const r=e=>n(e,"undefined"),o=e=>n(e,"null"),a=e=>n(e,"string"),s=e=>n(e,"number")&&!isNaN(e)||n(e,"bigint"),u=e=>!o(e)&&n(e,"object"),l=e=>n(e,"function"),c=e=>t(e,"Array"),d=e=>!u(e)&&!l(e),p=!r(Event),f=e=>p&&i(e,Event),g="undefined"!=typeof Error,b=e=>g&&i(e,Error),m=e=>t(e,"ErrorEvent"),v=e=>t(e,"DOMError"),h=e=>t(e,"DOMException"),w="undefined"!=typeof Element,y="undefined"!=typeof Map;function E(e,t){if(e===t)return!0;if(n(e,"number")&&isNaN(e))return n(t,"number")&&isNaN(t);const i=c(e),r=c(t);if(i!==r)return!1;if(i&&r){const n=e.length;if(n!==t.length)return!1;for(let i=n;0!=i--;)if(!E(e[i],t[i]))return!1;return!0}const o=u(e),a=u(t);if(o!==a)return!1;if(e&&t&&o&&a){const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let e of n)if(!i.includes(e))return!1;for(let i of n)if(!E(e[i],t[i]))return!1;return!0}return!1}function x(){return(new Date).toISOString()}var k;e.LogLevel=void 0,(k=e.LogLevel||(e.LogLevel={})).TRACE="trace",k.DEBUG="debug",k.INFO="info",k.LOG="log",k.WARN="warn",k.ERROR="error";const T=e.LogLevel.LOG,L=[e.LogLevel.TRACE,e.LogLevel.DEBUG,e.LogLevel.INFO,e.LogLevel.LOG,e.LogLevel.WARN,e.LogLevel.ERROR];function S(){}function I(e){const{size:n,concurrency:t}=e,i=[];let r=0;const o=()=>{if(r<t&&i.length){const{producer:e,resolve:n,reject:t}=i.shift();r++,e().then((e=>{r--,o(),n(e)}),(e=>{r--,o(),t(e)}))}};return{add:e=>{if(i.length+r>=n)throw new Error("Task buffer full");return new Promise(((n,t)=>{i.push({producer:e,resolve:n,reject:t}),o()}))}}}const O="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789";function N(e=10){return Array.from(Array(e)).map((()=>O[Math.floor(Math.random()*O.length)])).join("")}var C;e.TransportItemType=void 0,(C=e.TransportItemType||(e.TransportItemType={})).EXCEPTION="exception",C.LOG="log",C.MEASUREMENT="measurement",C.TRACE="trace",C.EVENT="event";const A={[e.TransportItemType.EXCEPTION]:"exceptions",[e.TransportItemType.LOG]:"logs",[e.TransportItemType.MEASUREMENT]:"measurements",[e.TransportItemType.TRACE]:"traces",[e.TransportItemType.EVENT]:"events"};function R(n){return t=>{if(t.type===e.TransportItemType.EXCEPTION&&t.payload){const e=t.payload,i=`${e.type}: ${e.value}`;if(function(e,n){return e.some((e=>a(e)?n.includes(e):!!n.match(e)))}(n,i))return null}return t}}var j;e.InternalLoggerLevel=void 0,(j=e.InternalLoggerLevel||(e.InternalLoggerLevel={}))[j.OFF=0]="OFF",j[j.ERROR=1]="ERROR",j[j.WARN=2]="WARN",j[j.INFO=3]="INFO",j[j.VERBOSE=4]="VERBOSE";const D={debug:S,error:S,info:S,prefix:"Faro",warn:S},P=e.InternalLoggerLevel.ERROR,z=Object.assign({},console);let M=z;function F(e){var n;return M=null!==(n=e.unpatchedConsole)&&void 0!==n?n:M,M}function _(n=z,t=P){const i=D;return t>e.InternalLoggerLevel.OFF&&(i.error=t>=e.InternalLoggerLevel.ERROR?function(...e){n.error(`${i.prefix}\n`,...e)}:S,i.warn=t>=e.InternalLoggerLevel.WARN?function(...e){n.warn(`${i.prefix}\n`,...e)}:S,i.info=t>=e.InternalLoggerLevel.INFO?function(...e){n.info(`${i.prefix}\n`,...e)}:S,i.debug=t>=e.InternalLoggerLevel.VERBOSE?function(...e){n.debug(`${i.prefix}\n`,...e)}:S),i}let $=D;function B(e,n){return $=_(e,n.internalLoggerLevel),$}class U{constructor(){this.unpatchedConsole=z,this.internalLogger=D,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)}}class q extends U{getIgnoreUrls(){return[]}}function V(n){return{[A[n.type]]:n.type===e.TransportItemType.TRACE?n.payload:[n.payload],meta:n.meta}}const G="Error";let W;function K(n,t,i,r,a){t.debug("Initializing API");const s=function(n,t,i,r,o){let a;return t.debug("Initializing traces API"),{getOTEL:()=>a,getTraceContext:()=>{const e=null==a?void 0:a.trace.getSpanContext(a.context.active());return e?{trace_id:e.traceId,span_id:e.spanId}:void 0},initOTEL:(e,n)=>{t.debug("Initializing OpenTelemetry"),a={trace:e,context:n}},isOTELInitialized:()=>!!a,pushTraces:n=>{try{const i={type:e.TransportItemType.TRACE,payload:n,meta:r.value};t.debug("Pushing trace\n",i),o.execute(i)}catch(e){t.error("Error pushing trace\n",e)}}}}(0,t,0,r,a);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s),function(n,t,i,r,a,s){var u;t.debug("Initializing exceptions API");let l=null;W=null!==(u=i.parseStacktrace)&&void 0!==u?u:W;const c=e=>{t.debug("Changing stacktrace parser"),W=null!=e?e:W};return c(i.parseStacktrace),{changeStacktraceParser:c,getStacktraceParser:()=>W,pushError:(n,{skipDedupe:u,stackFrames:c,type:d}={})=>{d=d||n.name||G;const p={meta:r.value,payload:{type:d,value:n.message,timestamp:x(),trace:s.getTraceContext()},type:e.TransportItemType.EXCEPTION};(null==(c=null!=c?c:n.stack?null==W?void 0:W(n).frames:void 0)?void 0:c.length)&&(p.payload.stacktrace={frames:c});const f={type:p.payload.type,value:p.payload.value,stackTrace:p.payload.stacktrace};u||!i.dedupe||o(l)||!E(f,l)?(l=f,t.debug("Pushing exception\n",p),a.execute(p)):t.debug("Skipping error push because it is the same as the last one\n",p.payload)}}}(0,t,i,r,a,s)),function(e,n,t,i,r){let o,a,s;n.debug("Initializing meta API");const u=e=>{a&&i.remove(a),a={user:e},i.add(a)},l=e=>{o&&i.remove(o),o={session:e},i.add(o)};return{setUser:u,resetUser:u,setSession:l,resetSession:l,getSession:()=>i.value.session,setView:e=>{s&&i.remove(s),s={view:e},i.add(s)},getView:()=>i.value.view}}(0,t,0,r)),function(n,t,i,r,a,s){t.debug("Initializing logs API");let u=null;return{pushLog:(n,{context:l,level:c,skipDedupe:d}={})=>{try{const p={type:e.TransportItemType.LOG,payload:{message:n.map((e=>{try{return String(e)}catch(e){return""}})).join(" "),level:null!=c?c:T,context:null!=l?l:{},timestamp:x(),trace:s.getTraceContext()},meta:r.value},f={message:p.payload.message,level:p.payload.level,context:p.payload.context};if(!d&&i.dedupe&&!o(u)&&E(f,u))return void t.debug("Skipping log push because it is the same as the last one\n",p.payload);u=f,t.debug("Pushing log\n",p),a.execute(p)}catch(e){t.error("Error pushing log\n",e)}}}}(0,t,i,r,a,s)),function(n,t,i,r,a,s){t.debug("Initializing measurements API");let u=null;return{pushMeasurement:(n,{skipDedupe:l}={})=>{var c;try{const d={type:e.TransportItemType.MEASUREMENT,payload:Object.assign(Object.assign({},n),{trace:s.getTraceContext(),timestamp:null!==(c=n.timestamp)&&void 0!==c?c:x()}),meta:r.value},p={type:d.payload.type,values:d.payload.values};if(!l&&i.dedupe&&!o(u)&&E(p,u))return void t.debug("Skipping measurement push because it is the same as the last one\n",d.payload);u=p,t.debug("Pushing measurement\n",d),a.execute(d)}catch(e){t.error("Error pushing measurement\n",e)}}}}(0,t,i,r,a,s)),function(n,t,i,r,a,s){let u=null;return{pushEvent:(n,l,c,{skipDedupe:d}={})=>{try{const p={meta:r.value,payload:{name:n,domain:null!=c?c:i.eventDomain,attributes:l,timestamp:x(),trace:s.getTraceContext()},type:e.TransportItemType.EVENT},f={name:p.payload.name,attributes:p.payload.attributes,domain:p.payload.domain};if(!d&&i.dedupe&&!o(u)&&E(f,u))return void t.debug("Skipping event push because it is the same as the last one\n",p.payload);u=f,t.debug("Pushing event\n",p),a.execute(p)}catch(e){t.error("Error pushing event",e)}}}}(0,t,i,r,a,s))}const H="undefined"==typeof window?global:window;class X extends U{constructor(){super(...arguments),this.api={},this.transports={}}}const Z="1.0.4";const J="_faroInternal";function Q(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(H,J,{configurable:!1,enumerable:!1,writable:!1,value:e}))}function Y(){return J in H}function ee(n,t,i,r,o,a,s){return t.debug("Initializing Faro"),e.faro={api:a,config:i,instrumentations:s,internalLogger:t,metas:r,pause:o.pause,transports:o,unpatchedConsole:n,unpause:o.unpause},Q(e.faro),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 H)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(H,e.config.globalObjectKey,{configurable:!1,writable:!1,value:e})}}(e.faro),e.faro}function ne(e){const n=F(e),t=B(n,e);if(Y()&&!e.isolate)return void t.error('Faro is already registered. Either add instrumentations, transports etc. to the global faro instance or use the "isolate" property');t.debug("Initializing");const i=function(e,n,t){let i=[],r=[];const o=()=>i.reduce(((e,n)=>Object.assign(e,l(n)?n():n)),{}),a=()=>{if(r.length){const e=o();r.forEach((n=>n(e)))}};return{add:(...e)=>{n.debug("Adding metas\n",e),i.push(...e),a()},remove:(...e)=>{n.debug("Removing metas\n",e),i=i.filter((n=>!e.includes(n))),a()},addListener:e=>{n.debug("Adding metas listener\n",e),r.push(e)},removeListener:e=>{n.debug("Removing metas listener\n",e),r=r.filter((n=>n!==e))},get value(){return o()}}}(0,t),r=function(e,n,t,i){n.debug("Initializing transports");const r=[];let o=t.paused,a=[];return{add:(...o)=>{n.debug("Adding transports"),o.forEach((o=>{n.debug(`Adding "${o.name}" transport`),r.some((e=>e===o))?n.warn(`Transport ${o.name} is already added`):(o.unpatchedConsole=e,o.internalLogger=n,o.config=t,o.metas=i,r.push(o))}))},addBeforeSendHooks:(...e)=>{n.debug("Adding beforeSendHooks\n",a),e.forEach((e=>{e&&a.push(e)}))},addIgnoreErrorsPatterns:(...e)=>{n.debug("Adding ignoreErrorsPatterns\n",e),e.forEach((e=>{e&&a.push(R(e))}))},getBeforeSendHooks:()=>[...a],execute:e=>{if(!o){let t=e;for(const e of a){const n=e(t);if(null===n)return;t=n}for(const e of r)n.debug(`Transporting item using ${e.name}\n`,t),e.send(t)}},isPaused:()=>o,pause:()=>{n.debug("Pausing transports"),o=!0},remove:(...e)=>{n.debug("Removing transports"),e.forEach((e=>{n.debug(`Removing "${e.name}" transport`);const t=r.indexOf(e);-1!==t?r.splice(t,1):n.warn(`Transport "${e.name}" is not added`)}))},removeBeforeSendHooks:(...e)=>{a.filter((n=>!e.includes(n)))},get transports(){return[...r]},unpause:()=>{n.debug("Unpausing transports"),o=!1}}}(n,t,e,i),o=K(0,t,e,i,r),a=function(e,n,t,i,r,o){n.debug("Initializing instrumentations");const a=[];return{add:(...s)=>{n.debug("Adding instrumentations"),s.forEach((s=>{n.debug(`Adding "${s.name}" instrumentation`),a.some((e=>e.name===s.name))?n.warn(`Instrumentation ${s.name} is already added`):(s.unpatchedConsole=e,s.internalLogger=n,s.config=t,s.metas=i,s.transports=r,s.api=o,a.push(s),s.initialize())}))},get instrumentations(){return[...a]},remove:(...e)=>{n.debug("Removing instrumentations"),e.forEach((e=>{var t,i;n.debug(`Removing "${e.name}" instrumentation`);const r=a.reduce(((n,t,i)=>null===n&&t.name===e.name?i:null),null);r?(null===(i=(t=a[r]).destroy)||void 0===i||i.call(t),a.splice(r,1)):n.warn(`Instrumentation "${e.name}" is not added`)}))}}}(n,t,e,i,r,o),s=ee(n,t,e,i,r,o,a);return function(e){var n;const t={sdk:{name:"@grafana/faro-core",version:Z,integrations:e.config.instrumentations.map((({name:e,version:n})=>({name:e,version:n})))}};e.config.session&&e.api.setSession(e.config.session),e.config.app&&(t.app=e.config.app),e.config.user&&(t.user=e.config.user),e.config.view&&(t.view=e.config.view),e.metas.add(t,...null!==(n=e.config.metas)&&void 0!==n?n:[])}(s),function(e){e.transports.add(...e.config.transports),e.transports.addBeforeSendHooks(e.config.beforeSend),e.transports.addIgnoreErrorsPatterns(e.config.ignoreErrors)}(s),function(e){e.instrumentations.add(...e.config.instrumentations)}(s),s}e.faro={};const te="faro",ie={EventNames:{CLICK:"click",NAVIGATION:"navigation",SESSION_START:"session_start",VIEW_CHANGED:"view_changed"}};class re extends X{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-session",this.version=Z}sendSessionStartEvent(e){const n=e.session;n&&n!==this.notifiedSession&&(this.notifiedSession=n,this.api.pushEvent(ie.EventNames.SESSION_START,{},void 0,{skipDedupe:!0}))}initialize(){this.sendSessionStartEvent(this.metas.value),this.metas.addListener(this.sendSessionStartEvent.bind(this))}}class oe extends X{constructor(e={}){super(),this.options=e,this.name="@grafana/faro-web-sdk:instrumentation-console",this.version=Z}initialize(){this.logDebug("Initializing\n",this.options),L.filter((e=>{var n;return!(null!==(n=this.options.disabledLevels)&&void 0!==n?n:oe.defaultDisabledLevels).includes(e)})).forEach((e=>{console[e]=(...n)=>{try{this.api.pushLog(n,{level:e})}catch(e){this.logError(e)}finally{this.unpatchedConsole[e](...n)}}}))}}oe.defaultDisabledLevels=[e.LogLevel.DEBUG,e.LogLevel.TRACE,e.LogLevel.LOG];const ae=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,se=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ue=/\((\S*)(?::(\d+))(?::(\d+))\)/,le="address at ",ce=le.length,de=/^\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,pe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,fe="safari-extension",ge="safari-web-extension",be=/Minified React error #\d+;/i;function me(e,n,t,i){const r={filename:e||document.location.href,function:n||"?"};return void 0!==t&&(r.lineno=t),void 0!==i&&(r.colno=i),r}function ve(e,n){const t=null==e?void 0:e.includes(fe),i=!t&&(null==e?void 0:e.includes(ge));return t||i?[(null==e?void 0:e.includes("@"))?e.split("@")[0]:e,t?`${fe}:${n}`:`${ge}:${n}`]:[e,n]}function he(e){let n=[];e.stacktrace?n=e.stacktrace.split("\n").filter(((e,n)=>n%2==0)):e.stack&&(n=e.stack.split("\n"));const t=n.reduce(((n,t,i)=>{let r,o,a,u,l;if(r=se.exec(t)){if(o=r[1],a=r[2],u=r[3],l=r[4],null==a?void 0:a.startsWith("eval")){const e=ue.exec(a);e&&(a=e[1],u=e[2],l=e[3])}a=(null==a?void 0:a.startsWith(le))?a.substring(ce):a,[o,a]=ve(o,a)}else if(r=de.exec(t)){if(o=r[1],a=r[3],u=r[4],l=r[5],a&&a.includes(" > eval")){const e=pe.exec(a);e&&(o=o||"eval",a=e[1],u=e[2])}else 0===i&&!l&&s(e.columnNumber)&&(l=String(e.columnNumber+1));[o,a]=ve(o,a)}return(a||o)&&n.push(me(a,o,u?Number(u):void 0,l?Number(l):void 0)),n}),[]);return be.test(e.message)?t.slice(1):t}function we(e){return{frames:he(e)}}function ye(e){let n,t,i,r,o=[];if(m(e)&&e.error)n=e.error.message,t=e.error.name,o=he(e.error);else if((i=v(e))||h(e)){const{name:r,message:o}=e;t=null!=r?r:i?"DOMError":"DOMException",n=o?`${t}: ${o}`:t}else b(e)?(n=e.message,o=he(e)):(u(e)||(r=f(e)))&&(t=r?e.constructor.name:void 0,n=`Non-Error exception captured with keys: ${Object.keys(e)}`);return[n,t,o]}function Ee(e){const n=window.onerror;window.onerror=(...t)=>{try{const[i,r,o,s,u]=t;let l,c,d=[];const p=a(i),f=me(r,"?",o,s);u||!p?([l,c,d]=ye(null!=u?u:i),0===d.length&&(d=[f])):p&&([l,c]=function(e){var n,t;const i=e.match(ae),r=null!==(n=null==i?void 0:i[1])&&void 0!==n?n:G;return[null!==(t=null==i?void 0:i[2])&&void 0!==t?t:e,r]}(i),d=[f]),l&&e.pushError(new Error(l),{type:c,stackFrames:d})}finally{null==n||n.apply(window,t)}}}class xe extends X{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-errors",this.version=Z}initialize(){var e;this.logDebug("Initializing"),Ee(this.api),e=this.api,window.addEventListener("unhandledrejection",(n=>{var t,i;let r,o,a=n;a.reason?a=n.reason:(null===(t=n.detail)||void 0===t?void 0:t.reason)&&(a=null===(i=n.detail)||void 0===i?void 0:i.reason),d(a)?(r=`Non-Error promise rejection captured with value: ${String(a)}`,o="UnhandledRejection"):[r,o]=ye(a),r&&e.pushError(new Error(r),{type:o})}))}}class ke extends X{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-view",this.version=Z}sendViewChangedEvent(e){const n=e.view;n&&n!==this.notifiedView&&(this.notifiedView=n,this.api.pushEvent(ie.EventNames.VIEW_CHANGED,{},void 0,{skipDedupe:!0}))}initialize(){this.sendViewChangedEvent(this.metas.value),this.metas.addListener(this.sendViewChangedEvent.bind(this))}}var Te,Le,Se,Ie,Oe,Ne=-1,Ce=function(e){addEventListener("pageshow",(function(n){n.persisted&&(Ne=n.timeStamp,e(n))}),!0)},Ae=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Re=function(){var e=Ae();return e&&e.activationStart||0},je=function(e,n){var t=Ae(),i="navigate";return Ne>=0?i="back-forward-cache":t&&(i=document.prerendering||Re()>0?"prerender":document.wasDiscarded?"restore":t.type.replace(/_/g,"-")),{name:e,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},De=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return i.observe(Object.assign({type:e,buffered:!0},t||{})),i}}catch(e){}},Pe=function(e,n,t,i){var r,o;return function(a){n.value>=0&&(a||i)&&((o=n.value-(r||0))||void 0===r)&&(r=n.value,n.delta=o,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n))}},ze=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Me=function(e){var n=function(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||e(n)};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Fe=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},_e=-1,$e=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},Be=function(e){"hidden"===document.visibilityState&&_e>-1&&(_e="visibilitychange"===e.type?e.timeStamp:0,qe())},Ue=function(){addEventListener("visibilitychange",Be,!0),addEventListener("prerenderingchange",Be,!0)},qe=function(){removeEventListener("visibilitychange",Be,!0),removeEventListener("prerenderingchange",Be,!0)},Ve=function(){return _e<0&&(_e=$e(),Ue(),Ce((function(){setTimeout((function(){_e=$e(),Ue()}),0)}))),{get firstHiddenTime(){return _e}}},Ge=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},We=function(e,n){n=n||{},Ge((function(){var t,i=[1800,3e3],r=Ve(),o=je("FCP"),a=De("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<r.firstHiddenTime&&(o.value=Math.max(e.startTime-Re(),0),o.entries.push(e),t(!0)))}))}));a&&(t=Pe(e,o,i,n.reportAllChanges),Ce((function(r){o=je("FCP"),t=Pe(e,o,i,n.reportAllChanges),ze((function(){o.value=performance.now()-r.timeStamp,t(!0)}))})))}))},Ke={passive:!0,capture:!0},He=new Date,Xe=function(e,n){Te||(Te=n,Le=e,Se=new Date,Qe(removeEventListener),Ze())},Ze=function(){if(Le>=0&&Le<Se-He){var e={entryType:"first-input",name:Te.type,target:Te.target,cancelable:Te.cancelable,startTime:Te.timeStamp,processingStart:Te.timeStamp+Le};Ie.forEach((function(n){n(e)})),Ie=[]}},Je=function(e){if(e.cancelable){var n=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,n){var t=function(){Xe(e,n),r()},i=function(){r()},r=function(){removeEventListener("pointerup",t,Ke),removeEventListener("pointercancel",i,Ke)};addEventListener("pointerup",t,Ke),addEventListener("pointercancel",i,Ke)}(n,e):Xe(n,e)}},Qe=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(n){return e(n,Je,Ke)}))},Ye=0,en=1/0,nn=0,tn=function(e){e.forEach((function(e){e.interactionId&&(en=Math.min(en,e.interactionId),nn=Math.max(nn,e.interactionId),Ye=nn?(nn-en)/7+1:0)}))},rn=function(){return Oe?Ye:performance.interactionCount||0},on=function(){"interactionCount"in performance||Oe||(Oe=De("event",tn,{type:"event",buffered:!0,durationThreshold:0}))},an=0,sn=function(){return rn()-an},un=[],ln={},cn=function(e){var n=un[un.length-1],t=ln[e.interactionId];if(t||un.length<10||e.duration>n.latency){if(t)t.entries.push(e),t.latency=Math.max(t.latency,e.duration);else{var i={id:e.interactionId,latency:e.duration,entries:[e]};ln[i.id]=i,un.push(i)}un.sort((function(e,n){return n.latency-e.latency})),un.splice(10).forEach((function(e){delete ln[e.id]}))}},dn={},pn=function e(n){document.prerendering?Ge((function(){return e(n)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(n)}),!0):setTimeout(n,0)};class fn extends X{constructor(){super(...arguments),this.name="@grafana/faro-web-sdk:instrumentation-web-vitals",this.version=Z}initialize(){this.logDebug("Initializing"),Object.entries(fn.mapping).forEach((([e,n])=>{n((n=>{this.api.pushMeasurement({type:"web-vitals",values:{[e]:n.value}})}))}))}}function gn(e={}){const n=[new xe,new fn,new re,new ke];return!1!==e.captureConsole&&n.push(new oe({disabledLevels:e.captureConsoleDisabledLevels})),n}fn.mapping={cls:function(e,n){n=n||{},We(Fe((function(){var t,i=[.1,.25],r=je("CLS",0),o=0,a=[],s=function(e){e.forEach((function(e){if(!e.hadRecentInput){var n=a[0],t=a[a.length-1];o&&e.startTime-t.startTime<1e3&&e.startTime-n.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e])}})),o>r.value&&(r.value=o,r.entries=a,t())},u=De("layout-shift",s);u&&(t=Pe(e,r,i,n.reportAllChanges),Me((function(){s(u.takeRecords()),t(!0)})),Ce((function(){o=0,r=je("CLS",0),t=Pe(e,r,i,n.reportAllChanges),ze((function(){return t()}))})),setTimeout(t,0))})))},fcp:We,fid:function(e,n){n=n||{},Ge((function(){var t,i=[100,300],r=Ve(),o=je("FID"),a=function(e){e.startTime<r.firstHiddenTime&&(o.value=e.processingStart-e.startTime,o.entries.push(e),t(!0))},s=function(e){e.forEach(a)},u=De("first-input",s);t=Pe(e,o,i,n.reportAllChanges),u&&Me(Fe((function(){s(u.takeRecords()),u.disconnect()}))),u&&Ce((function(){var r;o=je("FID"),t=Pe(e,o,i,n.reportAllChanges),Ie=[],Le=-1,Te=null,Qe(addEventListener),r=a,Ie.push(r),Ze()}))}))},inp:function(e,n){n=n||{},Ge((function(){var t=[200,500];on();var i,r=je("INP"),o=function(e){e.forEach((function(e){e.interactionId&&cn(e),"first-input"===e.entryType&&!un.some((function(n){return n.entries.some((function(n){return e.duration===n.duration&&e.startTime===n.startTime}))}))&&cn(e)}));var n,t=(n=Math.min(un.length-1,Math.floor(sn()/50)),un[n]);t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,i())},a=De("event",o,{durationThreshold:n.durationThreshold||40});i=Pe(e,r,t,n.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),Me((function(){o(a.takeRecords()),r.value<0&&sn()>0&&(r.value=0,r.entries=[]),i(!0)})),Ce((function(){un=[],an=rn(),r=je("INP"),i=Pe(e,r,t,n.reportAllChanges)})))}))},lcp:function(e,n){n=n||{},Ge((function(){var t,i=[2500,4e3],r=Ve(),o=je("LCP"),a=function(e){var n=e[e.length-1];if(n){var i=Math.max(n.startTime-Re(),0);i<r.firstHiddenTime&&(o.value=i,o.entries=[n],t())}},s=De("largest-contentful-paint",a);if(s){t=Pe(e,o,i,n.reportAllChanges);var u=Fe((function(){dn[o.id]||(a(s.takeRecords()),s.disconnect(),dn[o.id]=!0,t(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,u,!0)})),Me(u),Ce((function(r){o=je("LCP"),t=Pe(e,o,i,n.reportAllChanges),ze((function(){o.value=performance.now()-r.timeStamp,dn[o.id]=!0,t(!0)}))}))}}))},ttfb:function(e,n){n=n||{};var t=[800,1800],i=je("TTFB"),r=Pe(e,i,t,n.reportAllChanges);pn((function(){var o=Ae();if(o){var a=o.responseStart;if(a<=0||a>performance.now())return;i.value=Math.max(a-Re(),0),i.entries=[o],r(!0),Ce((function(){i=je("TTFB",0),(r=Pe(e,i,t,n.reportAllChanges))(!0)}))}}))}};const bn="browser";var mn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},vn={},hn={get exports(){return vn},set exports(e){vn=e}};!function(e,n){!function(t,i){var r="function",o="undefined",a="object",s="string",u="model",l="name",c="type",d="vendor",p="version",f="architecture",g="console",b="mobile",m="tablet",v="smarttv",h="wearable",w="embedded",y="Amazon",E="Apple",x="ASUS",k="BlackBerry",T="Browser",L="Chrome",S="Firefox",I="Google",O="Huawei",N="LG",C="Microsoft",A="Motorola",R="Opera",j="Samsung",D="Sharp",P="Sony",z="Xiaomi",M="Zebra",F="Facebook",_=function(e){for(var n={},t=0;t<e.length;t++)n[e[t].toUpperCase()]=e[t];return n},$=function(e,n){return typeof e===s&&-1!==B(n).indexOf(B(e))},B=function(e){return e.toLowerCase()},U=function(e,n){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof n===o?e:e.substring(0,350)},q=function(e,n){for(var t,o,s,u,l,c,d=0;d<n.length&&!l;){var p=n[d],f=n[d+1];for(t=o=0;t<p.length&&!l;)if(l=p[t++].exec(e))for(s=0;s<f.length;s++)c=l[++o],typeof(u=f[s])===a&&u.length>0?2===u.length?typeof u[1]==r?this[u[0]]=u[1].call(this,c):this[u[0]]=u[1]:3===u.length?typeof u[1]!==r||u[1].exec&&u[1].test?this[u[0]]=c?c.replace(u[1],u[2]):i:this[u[0]]=c?u[1].call(this,c,u[2]):i:4===u.length&&(this[u[0]]=c?u[3].call(this,c.replace(u[1],u[2])):i):this[u]=c||i;d+=2}},V=function(e,n){for(var t in n)if(typeof n[t]===a&&n[t].length>0){for(var r=0;r<n[t].length;r++)if($(n[t][r],e))return"?"===t?i:t}else if($(n[t],e))return"?"===t?i:t;return e},G={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"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,p],[/opios[\/ ]+([\w\.]+)/i],[p,[l,R+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[l,R]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[l,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[l,"UC"+T]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[l,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[l,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[l,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+T],p],[/\bfocus\/([\w\.]+)/i],[p,[l,S+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[l,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[l,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[l,"MIUI "+T]],[/fxios\/([-\w\.]+)/i],[p,[l,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 "+T]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 "+T],p],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[l,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,F],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[l,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[l,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[l,L+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,L+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[l,"Android "+T]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[p,V,{"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],[l,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[l,S+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,B]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",B]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,B]]],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],[u,[d,j],[c,m]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[d,j],[c,b]],[/\((ip(?:hone|od)[\w ]*);/i],[u,[d,E],[c,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[d,E],[c,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[d,O],[c,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[d,O],[c,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[d,z],[c,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[d,z],[c,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[d,"OPPO"],[c,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[d,"Vivo"],[c,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[d,"Realme"],[c,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[d,A],[c,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[d,A],[c,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[d,N],[c,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[d,N],[c,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[d,"Lenovo"],[c,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[d,"Nokia"],[c,b]],[/(pixel c)\b/i],[u,[d,I],[c,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[d,I],[c,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],[u,[d,P],[c,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[d,P],[c,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[d,"OnePlus"],[c,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[d,y],[c,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[d,y],[c,b]],[/(playbook);[-\w\),; ]+(rim)/i],[u,d,[c,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[d,k],[c,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[d,x],[c,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[d,x],[c,b]],[/(nexus 9)/i],[u,[d,"HTC"],[c,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[u,/_/g," "],[c,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[d,"Acer"],[c,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[d,"Meizu"],[c,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[d,D],[c,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,u,[c,b]],[/(archos) (gamepad2?)/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],[d,u,[c,m]],[/(surface duo)/i],[u,[d,C],[c,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[d,"Fairphone"],[c,b]],[/(u304aa)/i],[u,[d,"AT&T"],[c,b]],[/\bsie-(\w*)/i],[u,[d,"Siemens"],[c,b]],[/\b(rct\w+) b/i],[u,[d,"RCA"],[c,m]],[/\b(venue[\d ]{2,7}) b/i],[u,[d,"Dell"],[c,m]],[/\b(q(?:mv|ta)\w+) b/i],[u,[d,"Verizon"],[c,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[d,"Barnes & Noble"],[c,m]],[/\b(tm\d{3}\w+) b/i],[u,[d,"NuVision"],[c,m]],[/\b(k88) b/i],[u,[d,"ZTE"],[c,m]],[/\b(nx\d{3}j) b/i],[u,[d,"ZTE"],[c,b]],[/\b(gen\d{3}) b.+49h/i],[u,[d,"Swiss"],[c,b]],[/\b(zur\d{3}) b/i],[u,[d,"Swiss"],[c,m]],[/\b((zeki)?tb.*\b) b/i],[u,[d,"Zeki"],[c,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],u,[c,m]],[/\b(ns-?\w{0,9}) b/i],[u,[d,"Insignia"],[c,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[d,"NextBook"],[c,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],u,[c,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],u,[c,b]],[/\b(ph-1) /i],[u,[d,"Essential"],[c,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[d,"Envizen"],[c,m]],[/\b(trio[-\w\. ]+) b/i],[u,[d,"MachSpeed"],[c,m]],[/\btu_(1491) b/i],[u,[d,"Rotor"],[c,m]],[/(shield[\w ]+) b/i],[u,[d,"Nvidia"],[c,m]],[/(sprint) (\w+)/i],[d,u,[c,b]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[d,C],[c,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[d,M],[c,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[d,M],[c,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,u,[c,g]],[/droid.+; (shield) bui/i],[u,[d,"Nvidia"],[c,g]],[/(playstation [345portablevi]+)/i],[u,[d,P],[c,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[d,C],[c,g]],[/smart-tv.+(samsung)/i],[d,[c,v]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[d,j],[c,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,N],[c,v]],[/(apple) ?tv/i],[d,[u,E+" TV"],[c,v]],[/crkey/i],[[u,L+"cast"],[d,I],[c,v]],[/droid.+aft(\w)( bui|\))/i],[u,[d,y],[c,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[d,D],[c,v]],[/(bravia[\w ]+)( bui|\))/i],[u,[d,P],[c,v]],[/(mitv-\w{5}) bui/i],[u,[d,z],[c,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,U],[u,U],[c,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,v]],[/((pebble))app/i],[d,u,[c,h]],[/droid.+; (glass) \d/i],[u,[d,I],[c,h]],[/droid.+; (wt63?0{2,3})\)/i],[u,[d,M],[c,h]],[/(quest( 2)?)/i],[u,[d,F],[c,h]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[c,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[c,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[c,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,b]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[l,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[l,[p,V,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,"Windows"],[p,V,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,p],[/\(bb(10);/i],[p,[l,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[l,S+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[l,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[l,L+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[l,"Chromium OS"],p],[/(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) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,p],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[l,p]]},K=function(e,n){if(typeof e===a&&(n=e,e=i),!(this instanceof K))return new K(e,n).getResult();var r=e||(typeof t!==o&&t.navigator&&t.navigator.userAgent?t.navigator.userAgent:""),g=n?function(e,n){var t={};for(var i in e)n[i]&&n[i].length%2==0?t[i]=n[i].concat(e[i]):t[i]=e[i];return t}(W,n):W;return this.getBrowser=function(){var e,n={};return n[l]=i,n[p]=i,q.call(n,r,g.browser),n.major=typeof(e=n.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:i,n},this.getCPU=function(){var e={};return e[f]=i,q.call(e,r,g.cpu),e},this.getDevice=function(){var e={};return e[d]=i,e[u]=i,e[c]=i,q.call(e,r,g.device),e},this.getEngine=function(){var e={};return e[l]=i,e[p]=i,q.call(e,r,g.engine),e},this.getOS=function(){var e={};return e[l]=i,e[p]=i,q.call(e,r,g.os),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===s&&e.length>350?U(e,350):e,this},this.setUA(r),this};K.VERSION="1.0.32",K.BROWSER=_([l,p,"major"]),K.CPU=_([f]),K.DEVICE=_([u,d,c,g,b,v,m,h,w]),K.ENGINE=K.OS=_([l,p]),e.exports&&(n=e.exports=K),n.UAParser=K;var H=typeof t!==o&&(t.jQuery||t.Zepto);if(H&&!H.ua){var X=new K;H.ua=X.getResult(),H.ua.get=function(){return X.getUA()},H.ua.set=function(e){X.setUA(e);var n=X.getResult();for(var t in n)H.ua[t]=n[t]}}}("object"==typeof window?window:mn)}(hn,vn);const wn=()=>{const e=new vn.UAParser,{name:n,version:t}=e.getBrowser(),{name:i,version:r}=e.getOS(),o=e.getUA(),a=navigator.language,s=navigator.userAgent.includes("Mobi"),u=function(){if(!n||!t)return;if("userAgentData"in navigator)return navigator.userAgentData.brands;return}(),l="unknown";return{browser:{name:null!=n?n:l,version:null!=t?t:l,os:`${null!=i?i:l} ${null!=r?r:l}`,userAgent:null!=o?o:l,language:null!=a?a:l,mobile:s,brands:null!=u?u:l}}},yn=()=>({page:{url:location.href}}),En=[wn,yn];function xn(e){return{id:N(),attributes:e}}const kn={name:"default"};function Tn(e,n,t,i){return new(t||(t=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((i=i.apply(e,n||[])).next())}))}class Ln extends q{constructor(e){var n,t,i,r;super(),this.options=e,this.name="@grafana/faro-web-sdk:transport-fetch",this.version=Z,this.disabledUntil=new Date,this.rateLimitBackoffMs=null!==(n=e.defaultRateLimitBackoffMs)&&void 0!==n?n:5e3,this.getNow=null!==(t=e.getNow)&&void 0!==t?t:()=>Date.now(),this.promiseBuffer=I({size:null!==(i=e.bufferSize)&&void 0!==i?i:30,concurrency:null!==(r=e.concurrency)&&void 0!==r?r:5})}send(e){return Tn(this,void 0,void 0,(function*(){try{if(this.disabledUntil>new Date(this.getNow()))return this.logWarn(`Dropping transport item due to too many requests. Backoff until ${this.disabledUntil}`),Promise.resolve();yield this.promiseBuffer.add((()=>{const n=JSON.stringify(V(e)),{url:t,requestOptions:i,apiKey:r}=this.options,o=null!=i?i:{},{headers:a}=o,s=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}(o,["headers"]);return fetch(t,Object.assign({method:"POST",headers:Object.assign(Object.assign({"Content-Type":"application/json"},null!=a?a:{}),r?{"x-api-key":r}:{}),body:n,keepalive:!0},null!=s?s:{})).then((e=>(429===e.status&&(this.disabledUntil=this.getRetryAfterDate(e),this.logWarn(`Too many requests, backing off until ${this.disabledUntil}`)),e.text().catch(S),e))).catch((e=>{this.logError("Failed sending payload to the receiver\n",JSON.parse(n),e)}))}))}catch(e){this.logError(e)}}))}getIgnoreUrls(){return[this.options.url]}getRetryAfterDate(e){const n=this.getNow(),t=e.headers.get("Retry-After");if(t){const e=Number(t);if(!isNaN(e))return new Date(1e3*e+n);const i=Date.parse(t);if(!isNaN(i))return new Date(i)}return new Date(n+this.rateLimitBackoffMs)}}function Sn(e){var n,t,i,r,o,a,s,u,l,c,d;const p=[],f=_(e.unpatchedConsole,e.internalLoggerLevel);return e.transports?((e.url||e.apiKey)&&f.error('if "transports" is defined, "url" and "apiKey" should not be defined'),p.push(...e.transports)):e.url?p.push(new Ln({url:e.url,apiKey:e.apiKey})):f.error('either "url" or "transports" must be defined'),{app:e.app,dedupe:null===(n=e.dedupe)||void 0===n||n,globalObjectKey:e.globalObjectKey||te,instrumentations:null!==(t=e.instrumentations)&&void 0!==t?t:gn(),internalLoggerLevel:null!==(i=e.internalLoggerLevel)&&void 0!==i?i:P,isolate:null!==(r=e.isolate)&&void 0!==r&&r,metas:null!==(o=e.metas)&&void 0!==o?o:En,parseStacktrace:we,paused:null!==(a=e.paused)&&void 0!==a&&a,preventGlobalExposure:null!==(s=e.preventGlobalExposure)&&void 0!==s&&s,transports:p,unpatchedConsole:null!==(u=e.unpatchedConsole)&&void 0!==u?u:z,beforeSend:e.beforeSend,eventDomain:null!==(l=e.eventDomain)&&void 0!==l?l:bn,ignoreErrors:e.ignoreErrors,session:null!==(c=e.session)&&void 0!==c?c:xn(),user:e.user,view:null!==(d=e.view)&&void 0!==d?d:kn}}return e.BaseExtension=U,e.BaseInstrumentation=X,e.BaseTransport=q,e.ConsoleInstrumentation=oe,e.ConsoleTransport=class extends q{constructor(e={}){super(),this.options=e,this.name="@grafana/faro-web-sdk:transport-console",this.version=Z}send(n){var t;return this.unpatchedConsole[null!==(t=this.options.level)&&void 0!==t?t:e.LogLevel.DEBUG]("New event",V(n))}},e.Conventions=ie,e.ErrorsInstrumentation=xe,e.FetchTransport=Ln,e.SessionInstrumentation=re,e.VERSION=Z,e.ViewInstrumentation=ke,e.WebVitalsInstrumentation=fn,e.allLogLevels=L,e.browserMeta=wn,e.buildStackFrame=me,e.createInternalLogger=_,e.createPromiseBuffer=I,e.createSession=xn,e.deepEqual=E,e.defaultEventDomain=bn,e.defaultExceptionType=G,e.defaultGlobalObjectKey=te,e.defaultInternalLoggerLevel=P,e.defaultLogLevel=T,e.defaultMetas=En,e.defaultViewMeta=kn,e.genShortID=N,e.getCurrentTimestamp=x,e.getDataFromSafariExtensions=ve,e.getInternalFaroFromGlobalObject=function(){return H[J]},e.getStackFramesFromError=he,e.getTransportBody=V,e.getWebInstrumentations=gn,e.globalObject=H,e.initializeFaro=function(e){const n=Sn(e);if(n)return ne(n)},e.internalGlobalObjectKey=J,e.isArray=c,e.isBoolean=e=>n(e,"boolean"),e.isDomError=v,e.isDomException=h,e.isElement=e=>w&&i(e,Element),e.isElementDefined=w,e.isError=b,e.isErrorDefined=g,e.isErrorEvent=m,e.isEvent=f,e.isEventDefined=p,e.isFunction=l,e.isInstanceOf=i,e.isInt=e=>s(e)&&Number.isInteger(e),e.isInternalFaroOnGlobalObject=Y,e.isMap=e=>y&&i(e,Map),e.isMapDefined=y,e.isNull=o,e.isNumber=s,e.isObject=u,e.isPrimitive=d,e.isRegExp=e=>t(e,"RegExp"),e.isString=a,e.isSymbol=e=>n(e,"symbol"),e.isSyntheticEvent=e=>u(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e,e.isThenable=e=>l(null==e?void 0:e.then),e.isToString=t,e.isTypeof=n,e.isUndefined=r,e.makeCoreConfig=Sn,e.noop=S,e.pageMeta=yn,e.parseStacktrace=we,e.setInternalFaroOnGlobalObject=Q,e.transportItemTypeToBodyKey=A,e}({});
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFunction = exports.isEventDefined = exports.isEvent = exports.isErrorEvent = exports.isErrorDefined = exports.isError = exports.isElementDefined = exports.isElement = exports.isDomException = exports.isDomError = exports.isBoolean = exports.isArray = exports.internalGlobalObjectKey = exports.globalObject = exports.getTransportBody = exports.getInternalFaroFromGlobalObject = exports.getCurrentTimestamp = exports.genShortID = exports.defaultLogLevel = exports.defaultInternalLoggerLevel = exports.defaultGlobalObjectKey = exports.defaultExceptionType = exports.deepEqual = exports.createPromiseBuffer = exports.createInternalLogger = exports.Conventions = exports.BaseTransport = exports.BaseInstrumentation = exports.BaseExtension = exports.allLogLevels = exports.faro = exports.FetchTransport = exports.ConsoleTransport = exports.pageMeta = exports.defaultViewMeta = exports.defaultMetas = exports.createSession = exports.browserMeta = exports.WebVitalsInstrumentation = exports.ViewInstrumentation = exports.parseStacktrace = exports.getStackFramesFromError = exports.getDataFromSafariExtensions = exports.ErrorsInstrumentation = exports.ConsoleInstrumentation = exports.buildStackFrame = exports.initializeFaro = exports.defaultEventDomain = exports.makeCoreConfig = exports.getWebInstrumentations = void 0;
exports.VERSION = exports.transportItemTypeToBodyKey = exports.TransportItemType = exports.setInternalFaroOnGlobalObject = exports.noop = exports.LogLevel = exports.InternalLoggerLevel = exports.isUndefined = exports.isTypeof = exports.isToString = exports.isThenable = exports.isSyntheticEvent = exports.isSymbol = exports.isString = exports.isRegExp = exports.isPrimitive = exports.isObject = exports.isNumber = exports.isNull = exports.isMapDefined = exports.isMap = exports.isInternalFaroOnGlobalObject = exports.isInt = exports.isInstanceOf = void 0;
exports.isEventDefined = exports.isEvent = exports.isErrorEvent = exports.isErrorDefined = exports.isError = exports.isElementDefined = exports.isElement = exports.isDomException = exports.isDomError = exports.isBoolean = exports.isArray = exports.internalGlobalObjectKey = exports.globalObject = exports.getTransportBody = exports.getInternalFaroFromGlobalObject = exports.getCurrentTimestamp = exports.genShortID = exports.defaultLogLevel = exports.defaultInternalLoggerLevel = exports.defaultGlobalObjectKey = exports.defaultExceptionType = exports.deepEqual = exports.createPromiseBuffer = exports.createInternalLogger = exports.Conventions = exports.BaseTransport = exports.BaseInstrumentation = exports.BaseExtension = exports.allLogLevels = exports.faro = exports.FetchTransport = exports.ConsoleTransport = exports.pageMeta = exports.defaultViewMeta = exports.defaultMetas = exports.createSession = exports.browserMeta = exports.SessionInstrumentation = exports.WebVitalsInstrumentation = exports.ViewInstrumentation = exports.parseStacktrace = exports.getStackFramesFromError = exports.getDataFromSafariExtensions = exports.ErrorsInstrumentation = exports.ConsoleInstrumentation = exports.buildStackFrame = exports.initializeFaro = exports.defaultEventDomain = exports.makeCoreConfig = exports.getWebInstrumentations = void 0;
exports.VERSION = exports.transportItemTypeToBodyKey = exports.TransportItemType = exports.setInternalFaroOnGlobalObject = exports.noop = exports.LogLevel = exports.InternalLoggerLevel = exports.isUndefined = exports.isTypeof = exports.isToString = exports.isThenable = exports.isSyntheticEvent = exports.isSymbol = exports.isString = exports.isRegExp = exports.isPrimitive = exports.isObject = exports.isNumber = exports.isNull = exports.isMapDefined = exports.isMap = exports.isInternalFaroOnGlobalObject = exports.isInt = exports.isInstanceOf = exports.isFunction = void 0;
var config_1 = require("./config");

@@ -21,2 +21,3 @@ Object.defineProperty(exports, "getWebInstrumentations", { enumerable: true, get: function () { return config_1.getWebInstrumentations; } });

Object.defineProperty(exports, "WebVitalsInstrumentation", { enumerable: true, get: function () { return instrumentations_1.WebVitalsInstrumentation; } });
Object.defineProperty(exports, "SessionInstrumentation", { enumerable: true, get: function () { return instrumentations_1.SessionInstrumentation; } });
var metas_1 = require("./metas");

@@ -23,0 +24,0 @@ Object.defineProperty(exports, "browserMeta", { enumerable: true, get: function () { return metas_1.browserMeta; } });

@@ -12,2 +12,3 @@ "use strict";

var mobile = navigator.userAgent.includes('Mobi');
var brands = getBrands();
var unknown = 'unknown';

@@ -22,6 +23,16 @@ return {

mobile: mobile,
brands: brands !== null && brands !== void 0 ? brands : unknown,
},
};
function getBrands() {
if (!name || !version) {
return undefined;
}
if ('userAgentData' in navigator) {
return navigator.userAgentData.brands;
}
return undefined;
}
};
exports.browserMeta = browserMeta;
//# sourceMappingURL=meta.js.map
export { getWebInstrumentations, makeCoreConfig } from './config';
export { defaultEventDomain } from './consts';
export { initializeFaro } from './initialize';
export { buildStackFrame, ConsoleInstrumentation, ErrorsInstrumentation, getDataFromSafariExtensions, getStackFramesFromError, parseStacktrace, ViewInstrumentation, WebVitalsInstrumentation, } from './instrumentations';
export { buildStackFrame, ConsoleInstrumentation, ErrorsInstrumentation, getDataFromSafariExtensions, getStackFramesFromError, parseStacktrace, ViewInstrumentation, WebVitalsInstrumentation, SessionInstrumentation, } from './instrumentations';
export { browserMeta, createSession, defaultMetas, defaultViewMeta, pageMeta } from './metas';

@@ -6,0 +6,0 @@ export { ConsoleTransport, FetchTransport } from './transports';

@@ -9,2 +9,3 @@ import { UAParser } from 'ua-parser-js';

const mobile = navigator.userAgent.includes('Mobi');
const brands = getBrands();
const unknown = 'unknown';

@@ -19,5 +20,15 @@ return {

mobile,
brands: brands !== null && brands !== void 0 ? brands : unknown,
},
};
function getBrands() {
if (!name || !version) {
return undefined;
}
if ('userAgentData' in navigator) {
return navigator.userAgentData.brands;
}
return undefined;
}
};
//# sourceMappingURL=meta.js.map

@@ -8,3 +8,4 @@ import type { Config, LogLevel } from '@grafana/faro-core';

captureConsole?: boolean;
capturePerformanceTimeline?: boolean;
captureConsoleDisabledLevels?: LogLevel[];
}

@@ -5,3 +5,3 @@ export { getWebInstrumentations, makeCoreConfig } from './config';

export { initializeFaro } from './initialize';
export { buildStackFrame, ConsoleInstrumentation, ErrorsInstrumentation, getDataFromSafariExtensions, getStackFramesFromError, parseStacktrace, ViewInstrumentation, WebVitalsInstrumentation, } from './instrumentations';
export { buildStackFrame, ConsoleInstrumentation, ErrorsInstrumentation, getDataFromSafariExtensions, getStackFramesFromError, parseStacktrace, ViewInstrumentation, WebVitalsInstrumentation, SessionInstrumentation, } from './instrumentations';
export type { ConsoleInstrumentationOptions, ErrorEvent, ExtendedPromiseRejectionEvent } from './instrumentations';

@@ -8,0 +8,0 @@ export { browserMeta, createSession, defaultMetas, defaultViewMeta, pageMeta } from './metas';

@@ -6,3 +6,3 @@ import { BaseInstrumentation, LogLevel } from '@grafana/faro-core';

readonly name = "@grafana/faro-web-sdk:instrumentation-console";
readonly version = "1.0.2";
readonly version = "1.0.4";
static defaultDisabledLevels: LogLevel[];

@@ -9,0 +9,0 @@ constructor(options?: ConsoleInstrumentationOptions);

import { BaseInstrumentation } from '@grafana/faro-core';
export declare class ErrorsInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-errors";
readonly version = "1.0.2";
readonly version = "1.0.4";
initialize(): void;
}
import { BaseInstrumentation } from '@grafana/faro-core';
export declare class SessionInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-session";
readonly version = "1.0.2";
readonly version = "1.0.4";
private notifiedSession;

@@ -6,0 +6,0 @@ private sendSessionStartEvent;

import { BaseInstrumentation } from '@grafana/faro-core';
export declare class ViewInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-view";
readonly version = "1.0.2";
readonly version = "1.0.4";
private notifiedView;

@@ -6,0 +6,0 @@ private sendViewChangedEvent;

import { BaseInstrumentation } from '@grafana/faro-core';
export declare class WebVitalsInstrumentation extends BaseInstrumentation {
readonly name = "@grafana/faro-web-sdk:instrumentation-web-vitals";
readonly version = "1.0.2";
readonly version = "1.0.4";
static mapping: {

@@ -6,0 +6,0 @@ cls: (onReport: import("web-vitals").CLSReportCallback, opts?: import("web-vitals").ReportOpts | undefined) => void;

@@ -7,5 +7,5 @@ import { BaseTransport } from '@grafana/faro-core';

readonly name = "@grafana/faro-web-sdk:transport-console";
readonly version = "1.0.2";
readonly version = "1.0.4";
constructor(options?: ConsoleTransportOptions);
send(item: TransportItem): void;
}

@@ -7,3 +7,3 @@ import { BaseTransport, PromiseBuffer } from '@grafana/faro-core';

readonly name = "@grafana/faro-web-sdk:transport-fetch";
readonly version = "1.0.2";
readonly version = "1.0.4";
promiseBuffer: PromiseBuffer<Response | void>;

@@ -10,0 +10,0 @@ private readonly rateLimitBackoffMs;

{
"name": "@grafana/faro-web-sdk",
"version": "1.0.2",
"version": "1.0.4",
"description": "Faro instrumentations, metas, transports for web.",

@@ -54,3 +54,3 @@ "keywords": [

"dependencies": {
"@grafana/faro-core": "^1.0.2",
"@grafana/faro-core": "^1.0.4",
"ua-parser-js": "^1.0.32",

@@ -65,3 +65,3 @@ "web-vitals": "^3.1.1"

},
"gitHead": "d9e94af4eaa42dfbb45b14a3f225c854b21a9bc0"
"gitHead": "a3bc84bd68058f5d58f9c0fd8577f02706aad19f"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc