@safaricom-mxl/core
Version:
MXL Javascript agent core
3 lines (2 loc) • 19.9 kB
JavaScript
var E=class{constructor(t){this.baseUrl=t.baseUrl,this.headers={"Content-Type":"application/json",...t.defaultHeaders},this.maxRetries=t.maxRetries??3,this.initialRetryDelay=t.initialRetryDelay??500,this.retryAttempts=0}addHeader(t,n){this.headers[t]=n}onSuccess(){}onError(){}async fetch({path:t,data:n,options:r={},useBeacon:o=!1}){let i=`${this.baseUrl}${t}`;try{if(!o){let s=await fetch(i,{method:"POST",headers:await this.resolveHeaders(),body:JSON.stringify(n??{}),keepalive:!0,...r});if(s.status===401)return null;if(s.status!==200&&s.status!==202)throw new Error(`HTTP error! status: ${s.status}`);let a=await s.text();return this.onSuccess(),a?JSON.parse(a):null}if(navigator.sendBeacon){let s={type:"application/json",headers:await this.resolveHeaders()},a=new Blob([JSON.stringify(n??{})],s);if(navigator.sendBeacon(i,a))return this.onSuccess(),null;throw new Error("Beacon request failed")}throw new Error("Beacon API not supported")}catch(s){return console.error("Error in fetch:",s),this.onError(),this.fallbackRequest(i,n)}}async resolveHeaders(){let t={};for(let[n,r]of Object.entries(this.headers))try{let o=await r;o!==null&&(t[n]=o)}catch(o){console.error(`Error resolving header ${n}:`,o)}return t}async retry(){if(this.retryAttempts<this.maxRetries){let t=this.initialRetryDelay*2**this.retryAttempts;this.retryAttempts++,await new Promise(n=>setTimeout(n,t))}else console.error("Request failed after multiple retries."),this.retryAttempts=0}async fallbackRequest(t,n){return new Promise(r=>{let o=new XMLHttpRequest;o.open("POST",t),this.resolveHeaders().then(i=>{for(let[s,a]of Object.entries(i))o.setRequestHeader(s,a);o.onload=async()=>{o.status===200?this.onSuccess():await this.retry(),r(null)},o.onerror=async()=>{this.onError(),await this.retry(),console.error("Couldn't send request to the server. See the XHR error."),r(null)},o.send(JSON.stringify(n))})})}};var ee=Object.prototype.toString;function k(e){switch(ee.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return b(e,Error)}}function g(e,t){return ee.call(e)===`[object ${t}]`}function T(e){return g(e,"ErrorEvent")}function Pe(e){return g(e,"DOMError")}function ve(e){return g(e,"DOMException")}function y(e){return g(e,"String")}function S(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function F(e){return e===null||S(e)||typeof e!="object"&&typeof e!="function"}function h(e){return g(e,"Object")}function M(e){return typeof Event<"u"&&b(e,Event)}function L(e){return typeof Element<"u"&&b(e,Element)}function j(e){return g(e,"RegExp")}function Oe(e){return!!(e?.then&&typeof e.then=="function")}function U(e){return h(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function b(e,t){try{return e instanceof t}catch{return!1}}function x(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}var m=globalThis;var D=m,Ie=80;function B(e,t={}){if(!e)return"<unknown>";try{let n=e,r=5,o=[],i=0,s=0,a=" > ",c=a.length,u,l=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||Ie;for(;n&&i++<r&&(u=Re(n,l),!(u==="html"||i>1&&s+o.length*c+u.length>=f));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function Re(e,t){let n=e,r=[];if(!n?.tagName)return"";if(D.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.mxlComponent)return n.dataset.mxlComponent;if(n.dataset.mxlElement)return n.dataset.mxlElement}r.push(n.tagName.toLowerCase());let o=t?.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o?.length)o.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&y(s)){let a=s.split(/\s+/);for(let c of a)r.push(`.${c}`)}}let i=["aria-label","type","name","title","alt"];for(let s of i){let a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function Ae(){try{return D.document.location.href}catch{return""}}function Ne(e){if(!D.HTMLElement)return null;let t=e,n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.mxlComponent)return t.dataset.mxlComponent;if(t.dataset.mxlElement)return t.dataset.mxlElement}t=t.parentNode}return null}function $(){return typeof __MXL_BROWSER_BUNDLE__<"u"&&!!__MXL_BROWSER_BUNDLE__}function Te(){return"npm"}function z(){return!$()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function V(e,t){return e.require(t)}function Fe(e,t=module){let n;try{n=V(t,e)}catch{}if(!n)try{let{cwd:r}=V(t,"process");n=V(t,`${r()}/node_modules/${e}`)}catch{}return n}function Me(){return typeof window<"u"&&(!z()||Le())}function Le(){return m.process?.type==="renderer"}var w=console;function P(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function te(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function je(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let o=e[r];try{x(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function ne(e,t,n=!1){return y(e)?j(t)?t.test(e):y(t)?n?e===t:e.includes(t):!1:!1}function Ue(e,t=[],n=!1){return t.some(r=>ne(e,r,n))}function De(e,t,n){if(!(t in e))return;let r=e[t],o=n(r);typeof o=="function"&&se(o,r);try{e[t]=o}catch{!1}}function H(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{!1}}function se(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,H(e,"__mxl_original__",t)}catch{}}function Be(e){return e.__mxl_original__}function v(e){if(k(e))return{message:e.message,name:e.name,stack:e.stack,...oe(e)};if(M(e)){let t={type:e.type,target:re(e.target),currentTarget:re(e.currentTarget),...oe(e)};return typeof CustomEvent<"u"&&b(e,CustomEvent)&&(t.detail=e.detail),t}return e}function re(e){try{return L(e)?B(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function oe(e){if(typeof e=="object"&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function K(e,t=40){let n=Object.keys(v(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return P(r,t);for(let o=n.length;o>0;o--){let i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:P(i,t)}return""}function G(e){return C(e,new Map)}function C(e,t){if($e(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let o of Object.getOwnPropertyNames(e))typeof e[o]<"u"&&(r[o]=C(e[o],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(o=>{r.push(C(o,t))}),r}return e}function $e(e){if(!h(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function Ve(e){let t;switch(!0){case e===void 0:t=String(e);break;case(typeof e=="symbol"||typeof e=="bigint"):t=Object(e);break;case F(e):t=new e.constructor(e);break;default:t=e;break}return t}var _="?",ae=/\(error: (.*)\)/,ce=/captureMessage|captureException/;function ue(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let i=[],s=n.split(`
`);for(let a=r;a<s.length;a++){let c=s[a];if(c.length>1024)continue;let u=ae.test(c)?c.replace(ae,"$1"):c;if(!u.match(/\S*Error: /)){for(let l of t){let f=l(u);if(f){i.push(f);break}}if(i.length>=50+o)break}}return le(i.slice(o))}}function ze(e){return Array.isArray(e)?ue(...e):e}function le(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(O(t).function||"")&&t.pop(),t.reverse(),ce.test(O(t).function||"")&&(t.pop(),ce.test(O(t).function||"")&&t.pop()),t.slice(0,50).map(n=>({...n,filename:n.filename||O(t).filename,function:n.function||_}))}function O(e){return e[e.length-1]||{}}var W="<anonymous>";function X(e){try{return!e||typeof e!="function"?W:e.name||W}catch{return W}}function Ce(e){let t=e.exception;if(t){let n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function pe(e,t=100,n=Number.POSITIVE_INFINITY){try{return q("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function I(e,t=3,n=100*1024){let r=pe(e,t);return We(r)>n?I(e,t-1,n):r}function q(e,t,n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,o=qe()){let[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;let a=He(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";let u=t;if(u&&typeof u.toJSON=="function")try{let p=u.toJSON();return q("",p,c-1,r,o)}catch{}let l=Array.isArray(t)?[]:{},f=0,d=v(t);for(let p in d){if(!Object.prototype.hasOwnProperty.call(d,p))continue;if(f>=r){l[p]="[MaxProperties ~]";break}let we=d[p];l[p]=q(p,we,c-1,r,o),f++}return s(t),l}function He(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(x(t))return"[VueViewModel]";if(U(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${X(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=Ke(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Ke(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Ge(e){return~-encodeURI(e).split(/%..|./).length}function We(e){return Ge(JSON.stringify(e))}function Xe(e,t){let n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),r=e;try{r=decodeURI(e)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}function qe(){let e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function de(e,t){let n=0;for(let r=e.length-1;r>=0;r--){let o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var Je=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function me(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Je.exec(t);return n?n.slice(1):[]}function J(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n=o.charAt(0)==="/")}return t=de(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function fe(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function Ze(e,t){e=J(e).slice(1),t=J(t).slice(1);let n=fe(e.split("/")),r=fe(t.split("/")),o=Math.min(n.length,r.length),i=o;for(let a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}let s=[];for(let a=i;a<n.length;a++)s.push("..");return s=s.concat(r.slice(i)),s.join("/")}function ge(e){let t=ye(e),n=e.slice(-1)==="/",r=de(e.split("/").filter(o=>!!o),!t).join("/");return!r&&!t&&(r="."),r&&n&&(r+="/"),(t?"/":"")+r}function ye(e){return e.charAt(0)==="/"}function Ye(...e){return ge(e.join("/"))}function Qe(e){let t=me(e),n=t[0]||"",r=t[1];return!n&&!r?".":(r&&(r=r.slice(0,r.length-1)),n+r)}function et(e,t){let n=me(e)[2]||"";return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}function tt(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function R(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&e!==void 0&&!e.includes("node_modules/")}function be(e){let t=/^\s*[-]{4,}$/,n=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return r=>{let o=r.match(n);if(o){let i,s,a,c,u;if(o[1]){a=o[1];let d=a.lastIndexOf(".");if(a[d-1]==="."&&d--,d>0){i=a.slice(0,d),s=a.slice(d+1);let p=i.indexOf(".Module");p>0&&(a=a.slice(p+1),i=i.slice(0,p))}c=void 0}s&&(c=i,u=s),s==="<anonymous>"&&(u=void 0,a=void 0),a===void 0&&(u=u||_,a=c?`${c}.${u}`:u);let l=o[2]?.startsWith("file://")?o[2].slice(7):o[2],f=o[5]==="native";return l?.match(/\/[A-Z]:/)&&(l=l.slice(1)),!l&&o[5]&&!f&&(l=o[5]),{filename:l?decodeURI(l):void 0,module:e?e(l):void 0,function:a,lineno:he(o[3]),colno:he(o[4]),in_app:R(l||"",f)}}if(r.match(t))return{filename:r}}}function nt(e){return[90,be(e)]}function he(e){return Number.parseInt(e||"",10)||void 0}function rt(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function ot(e){return e.split(/[?#]/,1)[0]}function it(e){let{protocol:t,host:n,path:r}=e,o=n?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${o}${r}`}function st(e){return e.exception?.values?.[0]}function _e(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function Z(e,t){let n=st(e);if(!n)return;let r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){let i={...o?.data,...t.data};n.mechanism.data=i}}function Y(e,t){return e(t.stack||"",1)}function ke(e,t){let n={type:t.name||t.constructor.name,value:t.message},r=Y(e,t);return r.length&&(n.stacktrace={frames:r}),n}function at(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}function ct(e){if("name"in e&&typeof e.name=="string"){let r=`'${e.name}' captured as exception`;return"message"in e&&typeof e.message=="string"&&(r+=` with message '${e.message}'`),r}if("message"in e&&typeof e.message=="string")return e.message;let t=K(e);if(T(e))return`Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;let n=ut(e);return`${n&&n!=="Object"?`'${n}'`:"Object"} captured as exception with keys: ${t}`}function ut(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function lt(e,t,n,r){if(k(n))return[n,void 0];if(t.synthetic=!0,h(n)){let i=e?.getOptions().normalizeDepth,s={__serialized__:I(n,i)},a=at(n);if(a)return[a,s];let c=ct(n),u=r?.syntheticException||new Error(c);return u.message=c,[u,s]}let o=r?.syntheticException||new Error(n);return o.message=`${n}`,[o,void 0]}function pt(e,t,n,r){let i=r?.data&&r.data.mechanism||{handled:!0,type:"generic"},[s,a]=lt(e,i,n,r),c={exception:{values:[ke(t,s)]}};return a&&(c.extra=a),_e(c,void 0,void 0),Z(c,i),{...c,event_id:r?.event_id}}function ft(e,t,n="info",r,o){let i={event_id:r?.event_id,level:n};if(o&&r?.syntheticException){let s=Y(e,r.syntheticException);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]},Z(i,{synthetic:!0}))}if(S(t)){let{__mxl_template_string__:s,__mxl_template_values__:a}=t;return i.logentry={message:s,params:a},i}return i.message=t,i}function dt(e,t,n,r){let o=e(),i=!1,s=!0;return setInterval(()=>{let a=o.getTimeMs();i===!1&&a>t+n&&(i=!0,s&&r()),a<t+n&&(i=!1)},20),{poll:()=>{o.reset()},enabled:a=>{s=a}}}function mt(e,t,n){let r=t?t.replace(/^file:\/\//,""):void 0,o=e.location.columnNumber?e.location.columnNumber+1:void 0,i=e.location.lineNumber?e.location.lineNumber+1:void 0;return G({filename:r,module:n(r),function:e.functionName||_,colno:o,lineno:i,in_app:r?R(r):void 0})}var Q=class{constructor(t){this._maxSize=t;this._cache=new Map}get size(){return this._cache.size}get(t){let n=this._cache.get(t);if(n!==void 0)return this._cache.delete(t),this._cache.set(t,n),n}set(t,n){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(t,n)}remove(t){let n=this._cache.get(t);return n&&this._cache.delete(t),n}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let t=[];return this._cache.forEach(n=>t.push(n)),t}};var gt=typeof __MXL_SDK_VERSION__=="string"?__MXL_SDK_VERSION__:"0.0.0-unknown.0";var A,xe,N;function Ee(e){let t=m._mxlDebugIds;if(!t)return{};let n=Object.keys(t);return N&&n.length===xe||(xe=n.length,N=n.reduce((r,o)=>{A||(A={});let i=A[o];if(i)r[i[0]]=i[1];else{let s=e(o);for(let a=s.length-1;a>=0;a--){let u=s[a]?.filename,l=t[o];if(u&&l){r[u]=l,A[o]=[u,l];break}}}return r},{})),N}function yt(e,t){let n=Ee(e);if(!n)return[];let r=[];for(let o of t)o&&n[o]&&r.push({type:"sourcemap",code_file:o,debug_id:n[o]});return r}var Se=class{constructor(t){this.options=t;this.queue=[];let n={"mxl-api-key":t.apiKey};n["mxl-sdk-name"]=t.sdk||"node",n["mxl-sdk-version"]=t.sdkVersion||"unknown",this.api=new E({baseUrl:t.apiUrl||"http://mxl-server.service-availability.apps.ocpthikadev01.safaricom.net",defaultHeaders:n})}init(){}ready(){this.options.waitForProfile=!1,this.flush()}async send(t,n){if(!this.options.disabled&&!(this.options.filter&&!this.options.filter(t))){if(this.options.waitForProfile&&!this.profileId){this.queue.push(t);return}try{await this.api.fetch({path:"/track",data:t,useBeacon:n??this.options.useBeacon})}catch(r){console.error("Failed to send analytics data:",r)}}}setGlobalProperties(t){this.global={...this.global,...t}}async track(t,n,r){await this.send({type:"track",payload:{name:t,profileId:n?.profileId??this.profileId,properties:{...this.global??{},...n??{}}}},r)}async identify(t,n){t.profileId&&(this.profileId=t.profileId,this.flush()),Object.keys(t).length>1&&await this.send({type:"identify",payload:{...t,properties:{...this.global,...t.properties}}},n)}async alias(t,n){await this.send({type:"alias",payload:t},n)}async increment(t,n){await this.send({type:"increment",payload:t},n)}async decrement(t,n){await this.send({type:"decrement",payload:t},n)}clear(){this.profileId=void 0,this.global=void 0,this.queue=[]}async flush(){let t=this.queue.map(n=>this.send({...n,payload:{...n.payload,profileId:n.payload.profileId??this.profileId}}));await Promise.all(t),this.queue=[]}};export{m as GLOBAL_OBJ,Q as LRUMap,Se as MxlAnalytics,gt as SDK_VERSION,_ as UNKNOWN_FUNCTION,H as addNonEnumerableProperty,et as basename,mt as callFrameToStackFrame,v as convertToPlainObject,ue as createStackParser,Qe as dirname,G as dropUndefinedKeys,ft as eventFromMessage,pt as eventFromUnknownInput,ke as exceptionFromError,K as extractExceptionKeysForMessage,R as filenameIsInApp,De as fill,Ne as getComponentName,yt as getDebugImagesForResources,Ee as getFilenameToDebugIdMap,Ce as getFramesFromEvent,X as getFunctionName,Ae as getLocationHref,Be as getOriginalFunction,Te as getSDKSource,it as getSanitizedUrlString,B as htmlTreeAsString,ye as isAbsolute,Me as isBrowser,$ as isBrowserBundle,Pe as isDOMError,ve as isDOMException,L as isElement,k as isError,T as isErrorEvent,M as isEvent,b as isInstanceOf,ne as isMatchingPattern,z as isNodeEnv,S as isParameterizedString,h as isPlainObject,F as isPrimitive,j as isRegExp,y as isString,U as isSyntheticEvent,Oe as isThenable,x as isVueViewModel,Ye as join,Fe as loadModule,w as logger,se as markFunctionWrapped,be as node,nt as nodeStackLineParser,pe as normalize,ge as normalizePath,I as normalizeToSize,Xe as normalizeUrlToBase,Ve as objectify,Y as parseStackFrames,rt as parseUrl,Ze as relative,J as resolve,je as safeJoin,tt as severityLevelFromString,te as snipLine,ze as stackParserFromStackParserOptions,Ue as stringMatchesSomePattern,le as stripSentryFramesAndReverse,ot as stripUrlQueryAndFragment,P as truncate,dt as watchdogTimer};